diff options
Diffstat (limited to 'qarsh/sockutil.h')
-rw-r--r-- | qarsh/sockutil.h | 6 |
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); |