diff options
author | Dean Jansa <djansa@redhat.com> | 2010-09-28 15:53:28 -0500 |
---|---|---|
committer | Dean Jansa <djansa@redhat.com> | 2010-09-28 15:53:28 -0500 |
commit | edf6032e3395baa5e2a160e4f70d3b108ae31622 (patch) | |
tree | 583c4dccccd249674adb9711b083a5597d3405ac /sockutil.h | |
parent | e96e56146dc7c11d388d25db42383993b87e8791 (diff) | |
download | qarsh-edf6032e3395baa5e2a160e4f70d3b108ae31622.tar.gz qarsh-edf6032e3395baa5e2a160e4f70d3b108ae31622.tar.xz qarsh-edf6032e3395baa5e2a160e4f70d3b108ae31622.zip |
First crack at ipv6/ipv4 agnostic qarsh/qacp.
Diffstat (limited to 'sockutil.h')
-rw-r--r-- | sockutil.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -20,8 +20,8 @@ #include <netinet/in.h> 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); |