summaryrefslogtreecommitdiffstats
path: root/qarsh/sockutil.h
diff options
context:
space:
mode:
authorNate Straz <nstraz@redhat.com>2005-08-24 16:07:46 +0000
committerNate Straz <nstraz@redhat.com>2005-08-24 16:07:46 +0000
commit35ffc8bdc7ec6b166c0799f49d475803e6f285ff (patch)
tree4df7017959442635f3d5b1703849fd20db6a1c87 /qarsh/sockutil.h
downloadqarsh-35ffc8bdc7ec6b166c0799f49d475803e6f285ff.tar.gz
qarsh-35ffc8bdc7ec6b166c0799f49d475803e6f285ff.tar.xz
qarsh-35ffc8bdc7ec6b166c0799f49d475803e6f285ff.zip
Add initial working version of the QA Remote SHell.
Diffstat (limited to 'qarsh/sockutil.h')
-rw-r--r--qarsh/sockutil.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/qarsh/sockutil.h b/qarsh/sockutil.h
new file mode 100644
index 0000000..36d021a
--- /dev/null
+++ b/qarsh/sockutil.h
@@ -0,0 +1,6 @@
+#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);