MCPcopy Create free account
hub / github.com/JACoders/OpenJK / SV_SendMessageToClient

Function SV_SendMessageToClient

code/server/sv_snapshot.cpp:636–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634*/
635#define HEADER_RATE_BYTES 48 // include our header, IP header, and some overhead
636void SV_SendMessageToClient( msg_t *msg, client_t *client ) {
637 // record information about the message
638 client->frames[client->netchan.outgoingSequence & PACKET_MASK].messageSize = msg->cursize;
639 client->frames[client->netchan.outgoingSequence & PACKET_MASK].messageSent = sv.time;
640
641 // send the datagram
642 Netchan_Transmit( &client->netchan, msg->cursize, msg->data );
643}
644
645/*
646=======================

Callers 3

SV_SendClientGameStateFunction · 0.70
SV_SendClientSnapshotFunction · 0.70

Calls 1

Netchan_TransmitFunction · 0.50

Tested by

no test coverage detected