amxmodx/plugins/include
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 0f23329206.

* 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
..
amxconst.inc Values by reference in forwards 2016-04-05 18:51:18 +02:00
amxmisc.inc Add a param to register_*cmd() and get_*cmd() to indiquate info is a multilingual key + modify plugin 2016-04-16 11:56:49 +02:00
amxmodx_version.inc inc-doc2 nits/finishing touches 2015-03-09 19:41:21 +01:00
amxmodx.inc Add client_remove() forward and fix a bug with client not internally disconnected (#414) 2017-02-25 11:50:52 +01:00
cellarray.inc Normalize line endings and whitespace 2016-01-16 21:15:52 -03:00
cellstack.inc cellarray/celltrie/cellstack: Documentation fixes and consistency updates 2015-03-09 19:41:16 +01:00
celltrie.inc inc-doc2 nits/finishing touches 2015-03-09 19:41:21 +01:00
core.inc inc-doc2 nits/finishing touches 2015-03-09 19:41:21 +01:00
csstats.inc inc-doc2 nits/finishing touches 2015-03-09 19:41:21 +01:00
cstrike_const.inc Fix missing CS_NORESET constant (#400) 2017-01-10 18:51:41 +01:00
cstrike.inc Merge pull request #342 from Arkshine/feature/cs_get_item_alias 2016-03-16 15:15:00 +01:00
csx.inc Merge pull request #215 from xPaw/no-version-check 2015-03-10 01:02:05 +01:00
cvars.inc inc-doc2 nits/finishing touches 2015-03-09 19:41:21 +01:00
datapack.inc Merge pull request #239 from Nextra/inc-doc3 2015-05-10 17:12:50 +02:00
dbi.inc Make spcomp2 cry less 2015-03-11 15:19:27 +02:00
dodconst.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
dodfun.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
dodstats.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
dodx.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
engine_const.inc engine_const: Add sections and comments 2015-05-10 14:37:36 +02:00
engine_stocks.inc Update engine_stocks.inc 2014-10-05 16:19:47 +06:00
engine.inc Engine: Add error path for remove_entity() and unsafe entity ids 2015-05-11 16:15:43 +02:00
esf_const.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
esf.inc Added Corona Byte's EvolutionX core 2005-08-24 06:13:55 +00:00
fakemeta_const.inc Add new natives to read/write on entity's private data based off class/member name available from gamedata files 2015-09-19 20:07:48 +02:00
fakemeta_stocks.inc Make spcomp2 cry less 2015-03-11 15:19:27 +02:00
fakemeta_util.inc Normalize line endings and whitespace 2016-01-16 21:15:52 -03:00
fakemeta.inc Refactor 2 - Duplicate get_member_* for each set of natives for consistency 2015-11-02 20:10:38 +01:00
file.inc VFS: Fix various things 2015-03-25 13:50:07 +01:00
float.inc Backed out changeset: 2bc36c43b15f 2013-09-10 09:04:52 +02:00
fun.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
gameconfig.inc Gameconfig: Add game configs natives 2015-07-11 13:16:45 +02:00
geoip.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
ham_const.inc Add basic kvd doc to fakemeta.inc and fix ham_const.inc lies 2015-05-05 11:16:26 +02:00
hamsandwich.inc Make spcomp2 cry less 2015-03-11 15:19:27 +02:00
hlsdk_const.inc Cstrike: Add more known constants from game 2015-11-03 10:45:44 +01:00
lang.inc Add %l format specifier and SetTranslationTarget() native 2015-03-26 22:42:55 +01:00
message_const.inc Fix typo in TE_STREAK_SPLASH description (#398) 2017-01-06 21:05:36 +01:00
message_stocks.inc message_stocks.inc: Cache messages id 2016-03-20 13:04:48 +01:00
messages.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
newmenus.inc Normalize all the line endings 2015-03-10 16:51:45 +01:00
ns_const.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
ns.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
nvault.inc Make spcomp2 cry less 2015-03-11 15:19:27 +02:00
regex.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
sockets.inc Update sockets module (#301) 2017-03-03 19:56:22 +01:00
sorting.inc Normalize all the line endings 2015-03-10 16:51:45 +01:00
sqlx.inc Fix missing SQL_SetCharset native in SQLite 2015-04-12 21:08:03 +02:00
string.inc Add fmt() native to format and return inline a string 2016-02-23 19:56:02 +01:00
textparse_ini.inc Add a data argument in INI/SMC_ParseFile() to pass through to callbacks (bug 6228) 2015-07-29 22:23:13 +02:00
textparse_smc.inc Add a data argument in INI/SMC_ParseFile() to pass through to callbacks (bug 6228) 2015-07-29 22:23:13 +02:00
tfcconst.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
tfcstats.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
tfcx.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
time.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
tsconst.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
tsfun.inc Make spcomp2 cry less 2015-03-11 15:19:27 +02:00
tsstats.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
tsx.inc Remove version checks from all include files 2015-02-25 00:56:17 +02:00
vault.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
vector.inc Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
xs.inc Make spcomp2 cry less 2015-03-11 15:19:27 +02:00