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: */