aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/networking/streams/stream.c
Commit message (Collapse)AuthorAgeFilesLines
* stream: Make sure no watcher callback is active while changing stream callbacksMartin Willi2014-01-221-14/+3
| | | | | | | | | | | When changing async callbacks on streams, we have to make sure the watcher callback is not currently active and has temporarily disabled callbacks. This could have been the case, as we didn't explicitly removed any pending watcher registration if both callbacks are NULL. By enforcing the watcher unregistration, we are sure the watcher callback is not active and currently is not mangling the callback hooks. This should make sure we avoid any races for the callback variables.
* stream: Ensure UNIX socket path is null terminatedTobias Brunner2013-07-241-0/+1
|
* stream: allow async read/write callback to destroy the stream explicitlyMartin Willi2013-07-181-6/+11
|
* stream: add read/write_all() methods to streamMartin Willi2013-07-181-2/+48
|
* stream: replace print/vprint() convenience functions by a FILE* getterMartin Willi2013-07-181-37/+17
| | | | | While this will complicate the implementation of streams not based on a fd, it allows us to unleash the full power of FILE based convenience functions.
* stream: add support for TCP streamsMartin Willi2013-07-181-2/+79
|
* stream: add support for UNIX streamsMartin Willi2013-07-181-0/+49
|
* stream: support async operation using watcherMartin Willi2013-07-181-0/+109
|
* stream: add printf()-style covenience functionsMartin Willi2013-07-181-1/+42
|
* stream: create library instance of stream-managerMartin Willi2013-07-181-2/+1
|
* stream: add a stream class abstracting BSD socketsMartin Willi2013-07-181-0/+119
Currently only synchronous operation is supported, but this will be extended with asynchronous methods using the new watcher.