From edf6032e3395baa5e2a160e4f70d3b108ae31622 Mon Sep 17 00:00:00 2001 From: Dean Jansa Date: Tue, 28 Sep 2010 15:53:28 -0500 Subject: First crack at ipv6/ipv4 agnostic qarsh/qacp. --- sockutil.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sockutil.h') diff --git a/sockutil.h b/sockutil.h index 820376f..3678b1f 100644 --- a/sockutil.h +++ b/sockutil.h @@ -20,8 +20,8 @@ #include int getsockport(int sd); -int bind_any(int minport); -int connect_to_host(char *hostname, int port); -int connect_to_peer(struct sockaddr_in *peer, int port); +int bind_any(int minport, unsigned short ss_family); +int connect_to_host(char *hostname, int port, unsigned short *ss_family); +int connect_to_peer(struct sockaddr_storage *peer, int port); struct qa_packet * recv_packet(int fd); int send_packet(int fd, struct qa_packet *qp); -- cgit