Support UDP input. Also fix some issues with socket closing.
[cubemap] / acceptor.h
index caa4647..e0a1bd5 100644 (file)
@@ -3,7 +3,11 @@
 
 #include "thread.h"
 
-int create_server_socket(int port);
+enum SocketType {
+       TCP_SOCKET,
+       UDP_SOCKET,
+};
+int create_server_socket(int port, SocketType socket_type);
 
 class AcceptorProto;