stream: add support for UNIX streams

This commit is contained in:
Martin Willi
2013-07-18 16:00:28 +02:00
parent c1fd8c22ce
commit b785cfe05b
3 changed files with 77 additions and 0 deletions
@@ -247,6 +247,8 @@ METHOD(stream_manager_t, remove_service, void,
METHOD(stream_manager_t, destroy, void,
private_stream_manager_t *this)
{
remove_stream(this, stream_create_unix);
this->streams->destroy(this->streams);
this->services->destroy(this->services);
this->running->destroy(this->running);
@@ -278,5 +280,7 @@ stream_manager_t *stream_manager_create()
.lock = rwlock_create(RWLOCK_TYPE_DEFAULT),
);
add_stream(this, "unix://", stream_create_unix);
return &this->public;
}