stream: add support for TCP stream services

This commit is contained in:
Martin Willi
2013-07-18 16:00:28 +02:00
parent db1c8aa460
commit c5597a4b56
3 changed files with 53 additions and 0 deletions
@@ -250,6 +250,7 @@ METHOD(stream_manager_t, destroy, void,
remove_stream(this, stream_create_unix);
remove_stream(this, stream_create_tcp);
remove_service(this, stream_service_create_unix);
remove_service(this, stream_service_create_tcp);
this->streams->destroy(this->streams);
this->services->destroy(this->services);
@@ -285,6 +286,7 @@ stream_manager_t *stream_manager_create()
add_stream(this, "unix://", stream_create_unix);
add_stream(this, "tcp://", stream_create_tcp);
add_service(this, "unix://", stream_service_create_unix);
add_service(this, "tcp://", stream_service_create_tcp);
return &this->public;
}