Raised This Month: $ Target: $400
 0% 

Module: Threaded Sockets


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 06-09-2015 , 08:43   Re: Module: Threaded Sockets
Reply With Quote #1

Nice job. I was working on an update but this one is way better, so be sure to push it to amxmodx's github.

Feel free to take any code you want to improve your module, as I've seen that you didn't change much of the default code.

https://github.com/Javivi/amxmodx/co...sockets-update

Biggest changes are:
Code:
- WinSock version changed from 1.1 to 2.2.
- Properly check for WinSock initialization on OnAmxxAttach/Detach.
- Now, natives will not be added if we can't start up WinSock.
- socket_open is now IP version agnostic (both IPv4 and IPv6 are
supported).
- Error reporting has been changed on socket_open, now it returns the
actual libc errors instead of the previous made-up errors.
- socket_close now returns a value on success/failure.
- Code rewritten to be more readable, it should be self-explaining now.
__________________
Javivi is offline
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 06-11-2015 , 04:28   Re: Module: Threaded Sockets
Reply With Quote #2

Quote:
Originally Posted by Javivi View Post
Nice job. I was working on an update but this one is way better, so be sure to push it to amxmodx's github.
Sure, Thanks.

Quote:
Originally Posted by Javivi View Post
Feel free to take any code you want to improve your module, as I've seen that you didn't change much of the default code.
Yes, I didn't change any of the normal natives code, because i don't think there are any complaints regarding default sockets.
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here
Shooting King is offline
Reply


Thread Tools
Display Modes

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 18:25.


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