diff options
author | Martin Willi <martin@revosec.ch> | 2013-06-27 17:25:51 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2013-07-18 16:00:28 +0200 |
commit | c5597a4b5682f05841be7d2b4d2ed578f956cb13 (patch) | |
tree | 2317bb1a1344955093ea342e20d0c40ed330fe5e /src/libstrongswan/networking/streams/stream_service.h | |
parent | db1c8aa460ce4b6cc053857aa765322f2233b8ee (diff) | |
download | strongswan-c5597a4b5682f05841be7d2b4d2ed578f956cb13.tar.bz2 strongswan-c5597a4b5682f05841be7d2b4d2ed578f956cb13.tar.xz |
stream: add support for TCP stream services
Diffstat (limited to 'src/libstrongswan/networking/streams/stream_service.h')
-rw-r--r-- | src/libstrongswan/networking/streams/stream_service.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstrongswan/networking/streams/stream_service.h b/src/libstrongswan/networking/streams/stream_service.h index f864a7aeb..f1dc643f8 100644 --- a/src/libstrongswan/networking/streams/stream_service.h +++ b/src/libstrongswan/networking/streams/stream_service.h @@ -83,4 +83,12 @@ stream_service_t *stream_service_create_from_fd(int fd); */ stream_service_t *stream_service_create_unix(char *uri); +/** + * Create a service instance for TCP sockets. + * + * @param uri TCP socket specific URI, must start with "tcp://" + * @return stream_service instance, NULL on failure + */ +stream_service_t *stream_service_create_tcp(char *uri); + #endif /** STREAM_SERVICE_H_ @}*/ |