X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=acceptor.h;h=e0a1bd54811df6e4be0a28de9f5e415d48cc53b5;hp=caa46474ce48d83185244cc2e977c155ce882e1b;hb=ca9624c43b968a0f29ea44e47851ff686bb64bb6;hpb=f583e4d329222d8ce2a11524e924c02139b4f28d 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;