-
-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update sockets module #301
Merged
Merged
Commits on Oct 11, 2015
-
- 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(), a new parameter called _libc_errors has been added, and, if enabled, libc errors will be returned instead of the previous made-up errors. - socket_close() now returns a value on success/failure. - Added non-blocking sockets at socket_open_nb(). - Added socket_is_writable() to check if a socket is ready for write. - Added socket_is_readable() as an alias to socket_change(). - Code rewritten to be more readable, it should be self-explaining now.
Configuration menu - View commit details
-
Copy full SHA for 533e858 - Browse repository at this point
Copy the full SHA 533e858View commit details -
Updated documentation following the guidelines
Configuration menu - View commit details
-
Copy full SHA for 9674e13 - Browse repository at this point
Copy the full SHA 9674e13View commit details
Commits on Apr 2, 2016
-
- Fixed the backwards compatibility with the return codes - Merged socket_connect and socket_connect_nb - Added a 5th parameter to socket_open that takes bit flags to enable the new features (libc errors & nonblocking sockets) - Fixed an error on socket_send2 that caused the buffet not to start from the beginning if multiple calls were made - Updated docs - [docs] Prefixed error codes with SOCK_ - [docs] Added the new flags SOCK_NON_BLOCKING and SOCK_LIBC_ERRORS - [docs] Added a new stock called SOCK_ERROR_EINPROGRESS(error) to be used when checking if a newly created nonblocking socket is connecting
Configuration menu - View commit details
-
Copy full SHA for 3c49064 - Browse repository at this point
Copy the full SHA 3c49064View commit details
Commits on Feb 20, 2017
-
Fix some typos, shorten lines, document SOCK_ERROR_EINPROGRESS
Configuration menu - View commit details
-
Copy full SHA for 386ce17 - Browse repository at this point
Copy the full SHA 386ce17View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f23329 - Browse repository at this point
Copy the full SHA 0f23329View commit details -
Configuration menu - View commit details
-
Copy full SHA for 65adf18 - Browse repository at this point
Copy the full SHA 65adf18View commit details -
Configuration menu - View commit details
-
Copy full SHA for a5ef2db - Browse repository at this point
Copy the full SHA a5ef2dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0af5dc7 - Browse repository at this point
Copy the full SHA 0af5dc7View commit details
Commits on Feb 22, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 053d887 - Browse repository at this point
Copy the full SHA 053d887View commit details -
It should not be needed because nb sockets should always be checked or writability
Configuration menu - View commit details
-
Copy full SHA for 26c6bb3 - Browse repository at this point
Copy the full SHA 26c6bb3View commit details -
Configuration menu - View commit details
-
Copy full SHA for c1fd0fc - Browse repository at this point
Copy the full SHA c1fd0fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for aa7255d - Browse repository at this point
Copy the full SHA aa7255dView commit details -
strncopy will stop on a null byte, that makes the function unusable to receive binary data
Configuration menu - View commit details
-
Copy full SHA for d69430e - Browse repository at this point
Copy the full SHA d69430eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8cc2ab7 - Browse repository at this point
Copy the full SHA 8cc2ab7View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.