X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=acceptor.h;h=e0a1bd54811df6e4be0a28de9f5e415d48cc53b5;hp=caa46474ce48d83185244cc2e977c155ce882e1b;hb=0d72f384a1de672824298262ba5c427ec0aee2d6;hpb=684496ba9c7def1421d045435b6b92e80bc54c74 diff --git a/acceptor.h b/acceptor.h index caa4647..e0a1bd5 100644 --- a/acceptor.h +++ b/acceptor.h @@ -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;