Ok, engine routine is :
SV_Frame->SV_ReadPackets->SV_ConnectionlessPacket->SV_ConnectClient
In SV_ReadPackets :
-> NET_GetPacket is sent, where NET_GetLoopPacket(netsrc, &global_net_from, &global_net_message) is sent and where global_net_from is a structure containing the IP
struct is :
Code:
typedef struct netadr_s { //sizeof 20, 0x14. This struct cannot be modified (damnation) for IPv6 support--mods use it.
//The question on my mind is how can we fit an IPv6 address in here without breaking mods.
netadrtype_t type;
unsigned char ip[4]; //must be network order
unsigned char ipx[10]; //HA-HAHAHAHAHAhahahaha still need it for padding
unsigned short port;
} netadr_t;
-> SV_ConnectionlessPacket
From SV_ConnectionlessPacket :
-> SV_ConnectClient
Then is SV_ConnectClient, a local var is created : netadr_t address;
Is filled like : address = global_net_from;
Good luck.
__________________