amxmodx/plugins
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
..
BinLogReader Update copyright year 2015-03-29 20:01:25 +02:00
cstrike Fix player not being internally disconnected in some situation + add client_disconnected forward 2015-08-14 00:08:50 +02:00
dod Remove support for %name% replacement in plmenu (bug 6578). 2017-01-21 22:58:03 -05:00
esf Added Corona Byte's EvolutionX core 2005-08-24 06:13:55 +00:00
include Update sockets module (#301) 2017-03-03 19:56:22 +01:00
lang Fixed grammar for Start Voting mapsmenu.txt lang (#393) 2017-01-01 11:28:11 +01:00
ns Remove support for %name% replacement in plmenu (bug 6578). 2017-01-21 22:58:03 -05:00
testsuite Add RequestFrame() native (#412) 2017-02-23 12:55:53 +01:00
tfc Remove support for %name% replacement in plmenu (bug 6578). 2017-01-21 22:58:03 -05:00
ts Fix player not being internally disconnected in some situation + add client_disconnected forward 2015-08-14 00:08:50 +02:00
admin.sma AutoExecConfig: Remove config code in admin.sma 2015-08-14 16:38:28 +02:00
adminchat.sma MAX_PLAYERS: Fix plugins 2015-02-01 19:25:36 +01:00
admincmd.sma Sanitize servercfgfile and lservercfgfile values with amx_cvar (bug 6578). 2017-01-22 08:01:08 -05:00
adminhelp.sma 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
adminslots.sma Add client_remove() forward and fix a bug with client not internally disconnected (#414) 2017-02-25 11:50:52 +01:00
adminvote.sma Quote custom vote winning value (bug 6578). 2017-01-21 22:57:37 -05:00
AMBuilder Compiler: Treat pawn warnings as errors when building 2014-09-29 15:55:16 +02:00
antiflood.sma MAX_PLAYERS: Fix plugins 2015-02-01 19:25:36 +01:00
cmdmenu.sma Update cmdmenu.sma 2015-05-17 19:50:42 +03:00
compile.exe Fixed error output on compiler 2005-07-30 00:31:42 +00:00
compile.sh Fix compile.sh script for OS X. 2014-05-18 20:37:44 -05:00
imessage.sma fix memory leaks 2015-07-11 00:39:34 +03:00
mapchooser.sma fix memory leaks 2015-07-11 00:39:34 +03:00
mapsmenu.sma fix memory leaks 2015-07-11 00:39:34 +03:00
menufront.sma Update menufront.sma 2015-02-23 02:21:20 +05:00
multilingual.sma Fix player not being internally disconnected in some situation + add client_disconnected forward 2015-08-14 00:08:50 +02:00
nextmap.sma Rename change_level to engine_changelevel 2015-01-23 16:55:16 +01:00
pausecfg.sma MAX_PLAYERS: Fix plugins 2015-02-01 19:25:36 +01:00
plmenu.sma Remove support for %name% replacement in plmenu (bug 6578). 2017-01-21 22:58:03 -05:00
pluginmenu.sma Normalize all the line endings 2015-03-10 16:51:45 +01:00
scrollmsg.sma Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
statscfg.sma MAX_PLAYERS: Fix plugins 2015-02-01 19:25:36 +01:00
telemenu.sma MAX_PLAYERS: Fix moar 2015-02-01 21:45:16 +01:00
timeleft.sma MAX_PLAYERS: Fix plugins 2015-02-01 19:25:36 +01:00