Built-in _socket module is only supported in product versions 12.xx.xxx, from 13.00.xx5 and from 18.11.004 with the following functions:
|
socket |
|
gethostbyname |
|
gethostbyname_ex |
|
gethostbyaddr |
|
ntohs |
|
ntohl |
|
htons |
|
htonl |
|
inet_aton |
|
inet_ntoa |
|
getaddrinfo |
|
getnameinfo |
|
getdefualttimeout |
|
setdefualttimeout |
The following exceptions are supported:
|
error |
|
herror |
|
gaierror |
|
timeout |
The following constants are supported:
|
has_ipv6 |
|
AF_INET |
|
AF_UNSPEC |
|
INADDR_ANY |
|
INADDR_BROADCAST |
|
IPPROTO_IP |
|
IPPROTO_TCP |
|
IPPROTO_UDP |
|
IP_HDRINCL |
|
IP_TOS |
|
IP_TTL |
|
MSG_DONTWAIT |
|
SHUT_RD |
|
SHUT_RDWR |
|
SHUT_WR |
|
SOCK_STREAM |
|
SOCK_DGRAM |
|
SOCK_RAW |
|
SOL_SOCKET |
|
SO_ACCEPTCONN |
|
SO_BROADCAST |
|
SO_ERR |
|
SO_KEEPALIVE |
|
SO_LINGER |
|
SO_RCVBUF |
|
SO_RCVTIMEO |
|
SO_REUSEADDR |
|
SO_SNDBUF |
|
SO_TYPE |
|
TCP_MAXSEG |
|
TCP_NODELAY |
|
AI_ADDRCONFIG |
|
AI_ALL |
|
AI_CANONNAME |
|
AI_DEFAULT |
|
AI_MASK |
|
AI_NUMERICHOST |
|
AI_PASSIVE |
|
AI_V4MAPPED |
|
AI_V4MAPPED_CFG |
|
EAI_ADDRFAMILY |
|
EAI_AGAIN |
|
EAI_BADFLAGS |
|
EAI_BADHINTS |
|
EAI_FAIL |
|
EAI_FAMILY |
|
EAI_MEMORY |
|
EAI_NODATA |
|
EAI_NONAME |
|
EAI_PROTOCOL |
|
EAI_SERVICE |
|
EAI_SOCKTYPE |
|
EAI_SYSTEM |
|
NI_DGRAM |
|
NI_MAXHOST |
|
NI_MAXSERV |
|
NI_NAMEREQD |
|
NI_NOFQDN |
|
NI_NUMERICHOST |
|
NI_NUMERICSERV |
The following non standard constant is supported in product versions 12.xx.xxx and from 13.00.xx5 but it is not supported in version 18.11.004:
|
SO_CONTEXTID |
Socket objects support the following methods:
|
accept |
|
bind |
|
close |
|
connect |
|
connect_ex |
|
fileno |
|
getpeername |
|
getsockname |
|
getsockopt |
|
listen |
|
recv |
|
recv_into |
|
recvfrom |
|
recvfrom_into |
|
send |
|
sendall |
|
sendto |
|
setblocking |
|
settimeout |
|
gettimeout |
|
setsockopt |
|
shutdown |
Socket objects support the following attributes:
|
family |
|
type |
|
proto |
|
timeout |
Built-in _socket module is imported by socket.py.