Raised This Month: $ Target: $400
 0% 

socket_extention


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hackziner
Senior Member
Join Date: Sep 2006
Location: France
Old 08-22-2007 , 16:51   Re: socket_extention
Reply With Quote #10

Ok I've edited the socket module to add 2 functions ... But I've haven't test it yet, I've only check if it compile..

build for linux 1.76 ... I don't know if that work but ... that could perhaps work

I've add two function

socket_listen(...) same as socket_connect but the socket listen ( bind( for udp and tcp, + listen for tcp ). The address is still here but useless... I've hardcoded INADDR_ANY.

socket_accept(listenning socket)
Only for tcp, return a new socket with a connection attempt in the queue ...
return <0 if there is nothing in the queue ...


It's a 10 minuts try try if you really want a socket module that listen ... I'm not gonna to check it before this week end ^^
Attached Files
File Type: zip sockets_hz.zip (51.8 KB, 159 views)
File Type: inc sockets_hz.inc (2.2 KB, 193 views)
File Type: so sockets_hz_amxx_i386.so (10.4 KB, 125 views)
__________________
hackziner is offline
Send a message via ICQ to hackziner Send a message via AIM to hackziner Send a message via MSN to hackziner Send a message via Yahoo to hackziner Send a message via Skype™ to hackziner
 



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 07:54.


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