summaryrefslogtreecommitdiff
path: root/sockets.h
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-06-12 20:31:39 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-06-12 21:28:34 +0100
commit0ea06b9c632af2fe09cdea8be0baa9ae6e538aeb (patch)
tree8d7fdc93aa0a0f5c64b0441f93e30d12702580b1 /sockets.h
parent511e258e901e5248e1706609ba1099507fd750ae (diff)
Handle failing to connect to the server on startup.
Diffstat (limited to 'sockets.h')
-rw-r--r--sockets.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sockets.h b/sockets.h
index 7a88926..c1d74c7 100644
--- a/sockets.h
+++ b/sockets.h
@@ -44,6 +44,7 @@
void *get_in_addr(struct sockaddr *sa);
// Create socket to connect to real IRC server
+// Returns the socket descriptor on success, or -1 on error
int createserversocket(char *host, char *port);
// Create listening socket to listen for bouncer client connections