summaryrefslogtreecommitdiffstats
path: root/sockutil.h
diff options
context:
space:
mode:
authorNate Straz <nstraz@redhat.com>2005-09-13 16:01:28 +0000
committerNathan Straz <nstraz@redhat.com>2008-09-23 09:37:44 -0400
commitbf489daffc4902db3a9eb95d485fd867ac1ea524 (patch)
treec022f12c9d1bb8b56b566976cf5127b37112bbf1 /sockutil.h
parentc38e0fba0a10d5af0bb25f674177cb6404f73991 (diff)
downloadqarsh-bf489daffc4902db3a9eb95d485fd867ac1ea524.zip
qarsh-bf489daffc4902db3a9eb95d485fd867ac1ea524.tar.gz
qarsh-bf489daffc4902db3a9eb95d485fd867ac1ea524.tar.xz
Flatten the qarsh tree.
Diffstat (limited to 'sockutil.h')
-rw-r--r--sockutil.h8
1 files changed, 8 insertions, 0 deletions
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 <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);
+struct qa_packet * recv_packet(int fd);
+int send_packet(int fd, struct qa_packet *qp);