mirror of
https://repo.or.cz/socat.git
synced 2025-07-14 23:33:23 +00:00
Preferred IP version sorts getaddrionf() results
This commit is contained in:
parent
2d282f5608
commit
277f0d755d
16 changed files with 331 additions and 146 deletions
2
xio-ip.h
2
xio-ip.h
|
@ -42,7 +42,7 @@ extern const struct optdesc opt_res_defnames;
|
|||
extern const struct optdesc opt_res_stayopen;
|
||||
extern const struct optdesc opt_res_dnsrch;
|
||||
|
||||
extern int xioinit_ip(struct single *sfd, int *pf);
|
||||
extern int xioinit_ip(int *pf, char ipv);
|
||||
|
||||
extern int xiogetaddrinfo(const char *node, const char *service, int family, int socktype, int protocol, struct addrinfo **res, const int ai_flags[2], const unsigned long res_opts[2]);
|
||||
extern void xiofreeaddrinfo(struct addrinfo *res);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue