MCPcopy Create free account
hub / github.com/bwapi/bwapi / passPacket

Function passPacket

bwapi/SNP_DirectIP/SNP/SNPModule.cpp:114–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 {
113 }
114 void passPacket(const SOCKADDR& sender, Util::MemoryFrame packet)
115 {
116 INTERLOCKED;
117 GamePacket gamePacket;
118 memcpy(gamePacket.data, packet.begin(), packet.size());
119 gamePacket.packetSize = packet.size();
120 gamePacket.sender = sender;
121 gamePacket.timeStamp = GetTickCount();
122
123 incomingGamePackets.push(gamePacket);
124
125 SetEvent(receiveEvent);
126 }
127 //------------------------------------------------------------------------------------------------------------------------------------
128 BOOL __stdcall spiInitialize(client_info *gameClientInfo,
129 user_info *userData,

Callers 3

passPacketMethod · 0.85

Calls 2

beginMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected