Raised This Month: $ Target: $400
 0% 

Get ip in orpheu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-20-2012 , 02:41   Re: Get ip in orpheu
Reply With Quote #1

Well I can imagine how removing your question will be helpful ...
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-20-2012 , 04:05   Re: Get ip in orpheu
Reply With Quote #2

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.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode