diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-01-19 16:20:29 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-01-19 16:20:29 +0000 |
commit | 347f8a8a14e3fb736ea6f42c7a0da1a0472f947f (patch) | |
tree | 02733a960b201ec3466f97d53329b85505de1315 /src/libunixonacid/unixconnection_init.c | |
parent | 16de50671c7ad77f2acb4ca19d8806aad0490f03 (diff) | |
download | skalibs-347f8a8a14e3fb736ea6f42c7a0da1a0472f947f.tar.xz |
- Added unixconnection
- Added sig_name & sig_number (suggestion from Olivier Brunel)
- version bumped to 2.2.1.0, rc
Diffstat (limited to 'src/libunixonacid/unixconnection_init.c')
-rw-r--r-- | src/libunixonacid/unixconnection_init.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libunixonacid/unixconnection_init.c b/src/libunixonacid/unixconnection_init.c new file mode 100644 index 0000000..7831d6a --- /dev/null +++ b/src/libunixonacid/unixconnection_init.c @@ -0,0 +1,10 @@ + /* ISC license. */ + +#include <skalibs/unixmessage.h> +#include <skalibs/unixconnection.h> + +void unixconnection_init (unixconnection_t *io, int fdin, int fdout) +{ + unixmessage_receiver_init(&io->in, fdin, io->mainbuf, UNIXMESSAGE_BUFSIZE, io->auxbuf, UNIXMESSAGE_AUXBUFSIZE) ; + unixmessage_sender_init(&io->out, fdout) ; +} |