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

Method SendDate

src/network/network_admin.cpp:207–215  ·  view source on GitHub ↗

Tell the admin the date. */

Source from the content-addressed store, hash-verified

205
206/** Tell the admin the date. */
207NetworkRecvStatus ServerNetworkAdminSocketHandler::SendDate()
208{
209 auto p = std::make_unique<Packet>(this, ADMIN_PACKET_SERVER_DATE);
210
211 p->Send_uint32(TimerGameCalendar::date.base());
212 this->SendPacket(std::move(p));
213
214 return NETWORK_RECV_STATUS_OKAY;
215}
216
217/**
218 * Tell the admin that a client joined.

Callers 2

Receive_ADMIN_POLLMethod · 0.95
NetworkAdminUpdateFunction · 0.80

Calls 3

Send_uint32Method · 0.80
baseMethod · 0.45
SendPacketMethod · 0.45

Tested by

no test coverage detected