aboutsummaryrefslogtreecommitdiff
path: root/vendor/voclient/include/xmlrpc-c/abyss_unixsock.h
blob: 023f9580ac330fe4a011bacffa6320224b274592 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* This is just a sub-file for abyss.h */

#include <sys/socket.h>

struct abyss_unix_chaninfo {
    size_t peerAddrLen;
    struct sockaddr peerAddr;
};

void
ChanSwitchUnixCreate(unsigned short const portNumber,
                     TChanSwitch ** const chanSwitchPP,
                     const char **  const errorP);

void
ChanSwitchUnixCreateFd(int            const fd,
                       TChanSwitch ** const chanSwitchPP,
                       const char **  const errorP);

void
ChannelUnixCreateFd(int                           const fd,
                    TChannel **                   const channelPP,
                    struct abyss_unix_chaninfo ** const channelInfoPP,
                    const char **                 const errorP);

void
ChannelUnixGetPeerName(TChannel *         const channelP,
                       struct sockaddr ** const sockaddrPP,
                       size_t  *          const sockaddrLenP,
                       const char **      const errorP);

void
SocketUnixCreateFd(int        const fd,
                   TSocket ** const socketPP);

typedef int TOsSocket;
    /* TOsSocket is the type of a conventional socket offered by our OS.
       This is for backward compatibility; everyone should use TChanSwitch
       and TChannel instead today.
    */