Raised This Month: $51 Target: $400
 12% 

[REQ] pfnConnectionlessPacket


  
 
 
Thread Tools Display Modes
Author Message
-mE-
New Member
Join Date: Oct 2006
Location: Germany, Cologne
Old 01-10-2007 , 12:50   [REQ] pfnConnectionlessPacket
#1

While searching something in the HLSDK (eiface.h), I accidentally stumbled upon this functions:
Code:
// Return 1 if the packet is valid.  Set response_buffer_size if you want to send a response packet.  Incoming, it holds the max
//  size of the response_buffer, so you must zero it out if you choose not to respond.
int				(*pfnConnectionlessPacket )	( const struct netadr_s *net_from, const char *args, char *response_buffer, int *response_buffer_size );
If I get this right, this could be used as an alternative to sockets and would allow the server's port to implement a additional custom protocol!? Would be nice if this would actually be available via AMXX.

I couldn't find anything else regarding this function in the DOCs, forum, HLSDK, google, etc. and only have a limited knowledge in MetaMod and thus can't test it there, so please excuse for being n00b if I misunderstood the function
__________________

-mE- is offline
Send a message via ICQ to -mE-
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 01-11-2007 , 09:15   Re: [REQ] pfnConnectionlessPacket
#2

I'll have a look at this later, I've already been reviewing FakeMeta since it seemed the SDK hasn't been updated to AMXX 1.76 which I did the other night.
__________________
|<-- Retired from everything Small/Pawn related -->|
You know when you've been Rango'd
Orangutanz is offline
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 01-11-2007 , 13:38   Re: [REQ] pfnConnectionlessPacket
#3

Done some digging around on the NET since the HLSDK is useless, basically allowing this in FakeMeta is pointless.

The reason is that the client must be able to recieve this data that you send.
__________________
|<-- Retired from everything Small/Pawn related -->|
You know when you've been Rango'd

Last edited by Orangutanz; 01-11-2007 at 18:39.
Orangutanz is offline
 



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 04:42.


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