From 347f8a8a14e3fb736ea6f42c7a0da1a0472f947f Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 19 Jan 2015 16:20:29 +0000 Subject: - Added unixconnection - Added sig_name & sig_number (suggestion from Olivier Brunel) - version bumped to 2.2.1.0, rc --- src/libunixonacid/unixconnection_init.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/libunixonacid/unixconnection_init.c (limited to 'src/libunixonacid/unixconnection_init.c') 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 +#include + +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) ; +} -- cgit v1.2.3