Check which getprotobynumber_r() variant to use
[socat.git] / xio-udp.h
blobfd9d028b8b4cd149b7392ab7b74349d13f8202bf
1 /* source: xio-udp.h */
2 /* Copyright Gerhard Rieger and contributors (see file CHANGES) */
3 /* Published under the GNU General Public License V.2, see file COPYING */
5 #ifndef __xio_udp_h_included
6 #define __xio_udp_h_included 1
8 extern const struct addrdesc addr_udp_connect;
9 extern const struct addrdesc addr_udp_listen;
10 extern const struct addrdesc addr_udp_sendto;
11 extern const struct addrdesc addr_udp_datagram;
12 extern const struct addrdesc addr_udp_recvfrom;
13 extern const struct addrdesc addr_udp_recv;
14 extern const struct addrdesc addr_udp4_connect;
15 extern const struct addrdesc addr_udp4_listen;
16 extern const struct addrdesc addr_udp4_sendto;
17 extern const struct addrdesc addr_udp4_datagram;
18 extern const struct addrdesc addr_udp4_recvfrom;
19 extern const struct addrdesc addr_udp4_recv;
20 extern const struct addrdesc addr_udp6_connect;
21 extern const struct addrdesc addr_udp6_listen;
22 extern const struct addrdesc addr_udp6_sendto;
23 extern const struct addrdesc addr_udp6_datagram;
24 extern const struct addrdesc addr_udp6_recvfrom;
25 extern const struct addrdesc addr_udp6_recv;
27 extern int _xioopen_ipdgram_listen(struct single *sfd,
28 int xioflags, union sockaddr_union *us, socklen_t uslen,
29 struct opt *opts, int pf, int socktype, int ipproto);
31 extern int xioopen_ipdgram_listen(int argc, const char *argv[], struct opt *opts,
32 int rw, xiofile_t *fd,
33 unsigned groups, int af, int ipproto,
34 int protname);
36 #endif /* !defined(__xio_udp_h_included) */