From bf489daffc4902db3a9eb95d485fd867ac1ea524 Mon Sep 17 00:00:00 2001 From: Nate Straz Date: Tue, 13 Sep 2005 16:01:28 +0000 Subject: Flatten the qarsh tree. --- sockutil.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 sockutil.h (limited to 'sockutil.h') diff --git a/sockutil.h b/sockutil.h new file mode 100644 index 0000000..6e4b8dd --- /dev/null +++ b/sockutil.h @@ -0,0 +1,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); +struct qa_packet * recv_packet(int fd); +int send_packet(int fd, struct qa_packet *qp); -- cgit