MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SendReceive

Method SendReceive

src/network/network_turn.cpp:139–148  ·  view source on GitHub ↗

* Check whether we received/can send some data from/to the TURN server and * when that's the case handle it appropriately */

Source from the content-addressed store, hash-verified

137 * when that's the case handle it appropriately
138 */
139void ClientNetworkTurnSocketHandler::SendReceive()
140{
141 if (this->sock == INVALID_SOCKET) return;
142
143 if (this->CanSendReceive()) {
144 this->ReceivePackets();
145 }
146
147 this->SendPackets();
148}

Callers

nothing calls this directly

Calls 3

CanSendReceiveMethod · 0.80
SendPacketsMethod · 0.80
ReceivePacketsMethod · 0.45

Tested by

no test coverage detected