project_files/frontlib/socket.h
changeset 7234 613998625a3c
parent 7224 5143861c83bd
child 7271 5608ac657362
--- a/project_files/frontlib/socket.h	Fri Jun 15 19:57:25 2012 +0200
+++ b/project_files/frontlib/socket.h	Tue Jun 19 21:17:05 2012 +0200
@@ -49,6 +49,11 @@
 flib_tcpsocket *flib_socket_accept(flib_acceptor *acceptor, bool localOnly);
 
 /**
+ * Try to connect to the server at the given address.
+ */
+flib_tcpsocket *flib_socket_connect(const char *host, uint16_t port);
+
+/**
  * Close the socket and free its memory.
  * If the socket is already NULL, nothing happens.
  */