File: xio-unix.h

package info (click to toggle)
socat 2.0.0~beta9-1
  • links: PTS
  • area: main
  • in suites: experimental
  • size: 3,740 kB
  • sloc: ansic: 30,875; sh: 11,630; makefile: 149
file content (38 lines) | stat: -rw-r--r-- 1,463 bytes parent folder | download
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
/* source: xio-unix.h */
/* Copyright Gerhard Rieger 2001-2008 */
/* Published under the GNU General Public License V.2, see file COPYING */

#ifndef __xio_unix_h_included
#define __xio_unix_h_included 1

extern const union xioaddr_desc *xioaddrs_unix_connect[];
extern const union xioaddr_desc *xioaddrs_unix_listen[];
extern const union xioaddr_desc *xioaddrs_unix_sendto[];
extern const union xioaddr_desc *xioaddrs_unix_recvfrom[];
extern const union xioaddr_desc *xioaddrs_unix_recv[];
extern const union xioaddr_desc *xioaddrs_unix_client[];
extern const union xioaddr_desc *xioaddrs_abstract_connect[];
extern const union xioaddr_desc *xioaddrs_abstract_listen[];
extern const union xioaddr_desc *xioaddrs_abstract_sendto[];
extern const union xioaddr_desc *xioaddrs_abstract_recvfrom[];
extern const union xioaddr_desc *xioaddrs_abstract_recv[];
extern const union xioaddr_desc *xioaddrs_abstract_client[];

extern const struct optdesc xioopt_unix_tightsocklen;

extern socklen_t
xiosetunix(int pf,
	   struct sockaddr_un *saun,
	   const char *path,
	   bool abstract,
	   bool tight);
extern int
xiosetsockaddrenv_unix(int idx, char *namebuff, size_t namelen,
		       char *valuebuff, size_t valuelen,
		       struct sockaddr_un *sa, socklen_t salen, int ipproto);

extern int
_xioopen_unix_client(xiosingle_t *xfd, int xioflags, unsigned groups,
		     int abstract, struct opt *opts, const char *name);

#endif /* !defined(__xio_unix_h_included) */