diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-04 16:30:20 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-04 16:30:20 +0000 |
commit | 82724c82fd69720a579a8b245637ac247c08c700 (patch) | |
tree | 1f805e13b5ebde8c3497c83914a317dd203bf263 /src/libunixonacid/skaclient_server_01x.c | |
parent | 8ddcb8ca23638109b0b4c31b2214cd0cad700b6a (diff) | |
download | skalibs-82724c82fd69720a579a8b245637ac247c08c700.tar.xz |
Better interface for simple skaclient servers
Diffstat (limited to 'src/libunixonacid/skaclient_server_01x.c')
-rw-r--r-- | src/libunixonacid/skaclient_server_01x.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/libunixonacid/skaclient_server_01x.c b/src/libunixonacid/skaclient_server_01x.c new file mode 100644 index 0000000..e55e8cd --- /dev/null +++ b/src/libunixonacid/skaclient_server_01x.c @@ -0,0 +1,21 @@ +/* ISC license. */ + +/* MT-unsafe */ + +#include <skalibs/tai.h> +#include <skalibs/unixmessage.h> +#include <skalibs/skaclient.h> + +int skaclient_server_01x_init (char const *before, unsigned int beforelen, char const *after, unsigned int afterlen, tain_t const *deadline, tain_t *stamp) +{ + return unixmessage_receiver_0_init() && skaclient_server_init( + unixmessage_receiver_0, + unixmessage_sender_1, + unixmessage_sender_x, + before, + beforelen, + after, + afterlen, + deadline, + stamp) ; +} |