| 120 | session.release(); |
| 121 | } |
| 122 | void DirectIP::requestAds() |
| 123 | { |
| 124 | rebind(); |
| 125 | processIncomingPackets(); |
| 126 | |
| 127 | // send game state request |
| 128 | char sendBufferBytes[600]; |
| 129 | Util::MemoryFrame sendBuffer(sendBufferBytes, 600); |
| 130 | Util::MemoryFrame ping_server = sendBuffer; |
| 131 | ping_server.writeAs<int>(PacketType_RequestGameStats); |
| 132 | |
| 133 | UDPAddr host; |
| 134 | host.sin_family = AF_INET; |
| 135 | host.sin_addr.s_addr = inet_addr(getHostIPString()); |
| 136 | host.sin_port = htons(atoi(getHostPortString())); |
| 137 | session.sendPacket(host, sendBuffer.getFrameUpto(ping_server)); |
| 138 | } |
| 139 | void DirectIP::sendAsyn(const UDPAddr& him, Util::MemoryFrame packet) |
| 140 | { |
| 141 |
nothing calls this directly
no test coverage detected