2008-01-28 21:37:16 +00:00
|
|
|
/* source: xio-ipapp.h */
|
2016-07-22 06:54:31 +00:00
|
|
|
/* Copyright Gerhard Rieger and contributors (see file CHANGES) */
|
2008-01-27 12:00:08 +00:00
|
|
|
/* Published under the GNU General Public License V.2, see file COPYING */
|
|
|
|
|
|
|
|
#ifndef __xio_ipapp_h_included
|
|
|
|
#define __xio_ipapp_h_included 1
|
|
|
|
|
|
|
|
|
|
|
|
/* when selecting a low port, this is the lowest possible */
|
|
|
|
#define XIO_IPPORT_LOWER 640
|
|
|
|
|
|
|
|
|
|
|
|
extern const struct optdesc opt_sourceport;
|
|
|
|
/*extern const struct optdesc opt_port;*/
|
|
|
|
extern const struct optdesc opt_lowport;
|
|
|
|
|
|
|
|
extern int xioopen_ipapp_connect(int argc, const char *argv[], struct opt *opts, int xioflags, xiofile_t *fd,
|
2023-06-14 09:41:44 +00:00
|
|
|
groups_t groups, int socktype,
|
2008-01-27 12:00:08 +00:00
|
|
|
int ipproto, int protname);
|
2023-11-05 12:56:58 +00:00
|
|
|
extern int _xioopen_ipapp_prepare(struct opt *opts, struct opt **opts0, const char *hostname, const char *portname, int *pf, int protocol, const int ai_flags[2], const unsigned long res_opts[2], struct addrinfo **res, union sockaddr_union *us, socklen_t *uslen, bool *needbind, bool *lowport,
|
|
|
|
int socktype);
|
2008-01-27 12:00:08 +00:00
|
|
|
extern int _xioopen_ip4app_connect(const char *hostname, const char *portname,
|
|
|
|
struct single *xfd,
|
|
|
|
int socktype, int ipproto, void *protname,
|
|
|
|
struct opt *opts);
|
|
|
|
extern int xioopen_ipapp_listen(int argc, const char *argv[], struct opt *opts,
|
|
|
|
int xioflags, xiofile_t *fd,
|
2023-06-14 09:41:44 +00:00
|
|
|
groups_t groups, int socktype,
|
2008-01-27 12:00:08 +00:00
|
|
|
int ipproto, int protname);
|
2023-11-05 12:56:58 +00:00
|
|
|
extern int _xioopen_ipapp_listen_prepare(struct opt *opts, struct opt **opts0, const char *portname, int *pf, int ipproto, const int ai_flags[2], const unsigned long res_opts[2], union sockaddr_union *us, socklen_t *uslen, int socktype);
|
2023-11-05 12:59:14 +00:00
|
|
|
extern int _xio_sort_ip_addresses(struct addrinfo *themlist, struct addrinfo **ai_sorted);
|
2008-01-27 12:00:08 +00:00
|
|
|
|
|
|
|
#endif /* !defined(__xio_ipapp_h_included) */
|