Functions

sockets.inc

amxmodx 1.8.2 hg65

Function Type Description
socket_change native This function has no description.
socket_close native Closes a Socket
socket_open native Opens a new connection to hostname:port via protocol (either SOCKET_TCP or SOCKET_UDP),
returns a socket (positive) or negative or zero on error.
States of error:
0 - no error
1 - error while creating socket
2 - couldn't resolve hostname
3 - couldn't connect to given hostname:port
socket_recv native Recieves Data to string with the given length
socket_send native Sends data to the Socket
socket_send2 native Same as socket_send but Data can contain null bytes