MCPcopy Create free account
hub / github.com/ZDoom/Raze / FindNode

Function FindNode

source/common/engine/i_net.cpp:203–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203int FindNode (const sockaddr_in *address)
204{
205 int i;
206
207 // find remote node number
208 for (i = 0; i<doomcom.numnodes; i++)
209 if (address->sin_addr.s_addr == sendaddress[i].sin_addr.s_addr
210 && address->sin_port == sendaddress[i].sin_port)
211 break;
212
213 if (i == doomcom.numnodes)
214 {
215 // packet is not from one of the players (new game broadcast?)
216 i = -1;
217 }
218 return i;
219}
220
221//
222// PacketSend

Callers 6

PacketGetFunction · 0.85
PreGetFunction · 0.85
Host_CheckForConnectsFunction · 0.85
Host_SendAllHereFunction · 0.85
Guest_ContactHostFunction · 0.85
Guest_WaitForOthersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected