| 64 | } |
| 65 | |
| 66 | void UDPSocket::sendPacket(const UDPAddr &target, Util::MemoryFrame data) |
| 67 | { |
| 68 | int success = ::sendto(_s, (char*)data.begin(), data.size(), NULL, (sockaddr*)&target, sizeof(sockaddr_in)); |
| 69 | if(success == SOCKET_ERROR) |
| 70 | { |
| 71 | throw GeneralException("::send failed"); |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | Util::MemoryFrame UDPSocket::receivePacket(UDPAddr &target, Util::MemoryFrame dest) |
| 76 | { |
no test coverage detected