SGScript API
Objects:
Functions:
- socket_error - retrieve last error message, optionally as string
- socket_geterrnobyname - retrieve socket errno value by name
- socket_address - create socket address object from address string
- socket_address_frombytes - create socket address object from address byte buffer (sockaddr struct)
- socket_getaddrinfo - create socket address from domain name
- socket_gethostname - retrieve hostname of device
- socket - create a socket
- socket_tcp - create a TCP socket
- socket_udp - create a UDP socket
- socket_select - wait for socket state changes
Constants:
- AF_/PF_ - address/protocol families
- SOCK_ - socket types
- IPPROTO_ - Internet protocol types
- MSG_ - transfer flags
- SHUT_ - shutdown flags (non-Windows version)
- SD_ - shutdown flags (Windows version)
In this section:
- 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)