best makefile
[webserver.git] / server.h
index 0738e5a41f9832f96a861c93d3510effeb443437..98b2cbf79ef7b377e250ff78844e744617ceebad 100644 (file)
--- a/server.h
+++ b/server.h
@@ -6,14 +6,19 @@
 typedef SOCKET socket_t;
 #else /* Posix */
 typedef int socket_t;
-#define INVALID_SOCKET -1
 #endif
 
-socket_t open_listening_socket (int port);
-void close_listening_socket (socket_t sock);
+void init_network_context (void);
+void terminate_network_context (void);
 
-#endif /* __SERVER_H__ */
+int open_listening_socket (int port);
+int accept_incoming_connection (void);
 
-/* vim: set ts=4 sw=4 et: */
+void close_connection (void);
+
+int receive_data (char **pdata);
+int send_data (char *data, int len);
+
+#endif /* __SERVER_H__ */
 
 /* vim: set ts=4 sw=4 et: */