MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / send

Method send

source/network/ODSocketClient.cpp:138–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138ODSocketClient::ODComStatus ODSocketClient::send(ODPacket& s)
139{
140 if(mSource != ODSource::network)
141 return ODComStatus::OK;
142
143 sf::Socket::Status status = mSockClient.send(s.mPacket);
144 if (status == sf::Socket::Done)
145 return ODComStatus::OK;
146
147 OD_LOG_ERR("Could not send data from client status="
148 + Helper::toString(status));
149 return ODComStatus::Error;
150}
151
152ODSocketClient::ODComStatus ODSocketClient::recv(ODPacket& s)
153{

Callers 3

sendMsgMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 1

toStringFunction · 0.70

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64