aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/networking/streams/stream.h
Commit message (Collapse)AuthorAgeFilesLines
* stream: Separate TCP/Unix stream helpers from stream/service implementationsMartin Willi2014-06-041-51/+0
| | | | | | This allows us to disable Unix sockets cleanly on Windows. Replaces some read/write calls with recv/send counterparts, as Winsock does not like read/writes.
* lookip: Disconnect asynchronously to avoid dead-locking watcher unregistrationMartin Willi2014-02-171-3/+2
| | | | | | | | | While it really would be desirable to allow stream destruction during on_read() callbacks, this does not work anymore since e49b2998. Until we have a proper solution for this issue, use asynchronous disconnects for the only user doing so. Fixes #518.
* stream: allow async read/write callback to destroy the stream explicitlyMartin Willi2013-07-181-4/+4
|
* stream: add read/write_all() methods to streamMartin Willi2013-07-181-0/+25
|
* stream: replace print/vprint() convenience functions by a FILE* getterMartin Willi2013-07-181-14/+3
| | | | | 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-0/+27
|
* stream: add support for UNIX streamsMartin Willi2013-07-181-0/+24
|
* stream: support async operation using watcherMartin Willi2013-07-181-0/+33
|
* stream: add printf()-style covenience functionsMartin Willi2013-07-181-0/+18
|
* stream: add a stream class abstracting BSD socketsMartin Willi2013-07-181-0/+83
Currently only synchronous operation is supported, but this will be extended with asynchronous methods using the new watcher.