OSDN Git Service
(root)
/
roast
/
roast.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cecb730
)
windows/socket.hpp: tcp_socket, udp_socket
author
Myun2
<myun2@nwhite.info>
Sun, 13 May 2012 19:12:37 +0000
(
04:12
+0900)
committer
Myun2
<myun2@nwhite.info>
Sun, 13 May 2012 19:12:37 +0000
(
04:12
+0900)
roast/include/roast/windows/socket.hpp
patch
|
blob
|
history
diff --git
a/roast/include/roast/windows/socket.hpp
b/roast/include/roast/windows/socket.hpp
index
f775954
..
185af35
100644
(file)
--- a/
roast/include/roast/windows/socket.hpp
+++ b/
roast/include/roast/windows/socket.hpp
@@
-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){}
+ };
}
}