summaryrefslogtreecommitdiff
path: root/src/libunixonacid/unixconnection_init.c
blob: 7831d6af4f4c2b30670ed2874d6a8af361916d86 (plain)
1
2
3
4
5
6
7
8
9
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) ;
}