AMX Mod X - Half-Life 1 Scripting and Administration
Go to file
Javivi 6a553122b1 Update sockets module (#301)
* Module rewrite

- 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.

* Update docs and fix AMBuild

Updated documentation following the guidelines

* Fixs for the module

- 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

* Fixes for the docs

Fix some typos, shorten lines, document SOCK_ERROR_EINPROGRESS

* Document magic numbers

No more magic

* Revert "Document magic numbers"

This reverts commit 0f233292063400ea7fdbcd5e5d5cd6e54f8cd71c.

* More docs fixes

* Fix broken socket_send2()

* Add error checking in send2()

* Remove stock

It should not be needed because nb sockets should always be checked or
writability

* Fix some identations

* Fix return codes doc

* Fix socket_recv() regression

strncopy will stop on a null byte, that makes the function unusable to
receive binary data

* More docs typo fixes
2017-03-03 19:56:22 +01:00
amxmodx Fix VS project file (#416) 2017-02-26 21:15:53 +01:00
compiler Fix returning strings from variadic functions (lost changes) (#399) 2017-01-09 20:40:28 +01:00
configs Fix TFC virtual functions indexes under linux 2016-02-19 17:29:21 +01:00
editor/studio Normalize line endings and whitespace 2016-01-16 21:15:52 -03:00
gamedata Merge pull request #342 from Arkshine/feature/cs_get_item_alias 2016-03-16 15:15:00 +01:00
installer Normalize line endings and whitespace 2016-01-16 21:15:52 -03:00
modules Update sockets module (#301) 2017-03-03 19:56:22 +01:00
plugins Update sockets module (#301) 2017-03-03 19:56:22 +01:00
public Update to the latest AMTL (#410) 2017-02-19 15:01:58 +01:00
support Add RequestFrame() native (#412) 2017-02-23 12:55:53 +01:00
third_party Update hashing library (#384) 2016-08-22 11:21:46 +02:00
tools Normalize line endings and whitespace 2016-01-16 21:15:52 -03:00
.gitattributes Add gitattributes 2015-03-10 11:11:49 +02:00
.gitignore Update to the latest AMTL (#381) 2016-08-12 15:30:06 +02:00
.gitmodules Use upstream AMTL as a submodule 2015-03-09 22:53:58 +01:00
.travis.yml Update TravisCI build to use Clang 3.7 2016-03-20 23:02:15 +01:00
AMBuildScript Refactor and cleanup the AMBuildScript a bit 2016-02-12 02:05:17 +01:00
appveyor.yml Fix AppVeyor 2015-03-09 23:12:27 +01:00
configure.py Tweak build scripts so the vs build frontend will work. 2014-08-02 12:29:53 -07:00
product.version Bump version to 1.8.3-dev. 2013-02-14 23:30:38 -08:00
pushbuild.txt Normalize line endings and whitespace 2016-01-16 21:15:52 -03:00
README.md 💇 2014-06-03 12:19:43 +03:00

AMX Mod X

AMX Mod X - Half-Life 1 Scripting and Server Administration

General

Development