| 28 | } |
| 29 | |
| 30 | void UDPSocket::init() |
| 31 | { |
| 32 | release(); |
| 33 | _s = ::socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); |
| 34 | _bound = 0; |
| 35 | if(_s == INVALID_SOCKET) |
| 36 | { |
| 37 | throw GeneralException("socket failed"); |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | void UDPSocket::release() throw() |
| 42 | { |
no test coverage detected