OSDN Git Service

windows/socket.hpp: tcp_socket, udp_socket
authorMyun2 <myun2@nwhite.info>
Sun, 13 May 2012 19:12:37 +0000 (04:12 +0900)
committerMyun2 <myun2@nwhite.info>
Sun, 13 May 2012 19:12:37 +0000 (04:12 +0900)
roast/include/roast/windows/socket.hpp

index f775954..185af35 100644 (file)
@@ -143,6 +143,16 @@ namespace roast
                        int send(const void* s, size_t size, int flag=0){return 0;}
                        int recv(void* s, size_t size, int flag=0){return 0;}
                };
+
+               //////////////////////////////////////////////////////////////////
+
+               typedef socket tcp_socket;
+
+               class udp_socket : public socket
+               {
+               public:
+                       udp_socket(int af=AF_INET, int type=SOCK_DGRAM, int protocol=0) : socket(af, type, protocol){}
+               };
        }
 }