Version 1.8.0.0
[socat.git] / xio-udp.h
blob3cdccba710eed12304ccdbde866ce744f0b11db1
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 xioaddr_udp_connect;
9 extern const struct addrdesc xioaddr_udp_listen;
10 extern const struct addrdesc xioaddr_udp_sendto;
11 extern const struct addrdesc xioaddr_udp_datagram;
12 extern const struct addrdesc xioaddr_udp_recvfrom;
13 extern const struct addrdesc xioaddr_udp_recv;
14 extern const struct addrdesc xioaddr_udp4_connect;
15 extern const struct addrdesc xioaddr_udp4_listen;
16 extern const struct addrdesc xioaddr_udp4_sendto;
17 extern const struct addrdesc xioaddr_udp4_datagram;
18 extern const struct addrdesc xioaddr_udp4_recvfrom;
19 extern const struct addrdesc xioaddr_udp4_recv;
20 extern const struct addrdesc xioaddr_udp6_connect;
21 extern const struct addrdesc xioaddr_udp6_listen;
22 extern const struct addrdesc xioaddr_udp6_sendto;
23 extern const struct addrdesc xioaddr_udp6_datagram;
24 extern const struct addrdesc xioaddr_udp6_recvfrom;
25 extern const struct addrdesc xioaddr_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_udp_sendto(int argc, const char *argv[], struct opt *opts, int xioflags, xiofile_t *xfd, const struct addrdesc *addrdesc);
32 extern int xioopen_udp_datagram(int argc, const char *argv[], struct opt *opts, int xioflags, xiofile_t *xfd, const struct addrdesc *addrdesc);
33 extern int xioopen_udp_recvfrom(int argc, const char *argv[], struct opt *opts, int xioflags, xiofile_t *xfd, const struct addrdesc *addrdesc);
34 extern int xioopen_udp_recv(int argc, const char *argv[], struct opt *opts, int xioflags, xiofile_t *xfd, const struct addrdesc *addrdesc);
36 extern int _xioopen_udp_sendto(const char *hostname, const char *servname, struct opt *opts, int xioflags, xiofile_t *xxfd, groups_t groups, int pf, int socktype, int ipproto);
38 extern int xioopen_ipdgram_listen(int argc, const char *argv[], struct opt *opts, int rw, xiofile_t *xfd, const struct addrdesc *addrdesc);
40 #endif /* !defined(__xio_udp_h_included) */