documentation
Search
Search
Description
SGScript API
socket_error [function]
socket_geterrnobyname [function]
socket_address [object]
socket_address [function]
socket_address_frombytes [function]
socket_getaddrinfo [function]
socket_gethostname [function]
socket [object]
socket.bind [method]
socket.listen [method]
socket.accept [method]
socket.connect [method]
socket.send [method]
socket.sendto [method]
socket.recv [method]
socket.recvfrom [method]
socket.shutdown [method]
socket.close [method]
socket.getpeername [method]
socket [function]
socket_tcp [function]
socket_udp [function]
socket_select [function]
AF_/PF_ [constants]
SOCK_ [constants]
IPPROTO_ [constants]
MSG_ [constants]
SHUT_ [constants]
SD_ [constants]
All SGScript functions (A-Z)
All SGScript constants (A-Z)
C API
socket [type]
socket_address [type]
SGScript Sockets library
>>
C API
>>
socket [type]
socket
a socket object contains the socket identifier directly in the data pointer
extraction of the identifier can be done this way:
((int)(size_t)obj->data)
the identifier may be -1 if the socket is closed