Skip to main content

Module tcp_socket

Module tcp_socket 

Source

Structsยง

TcpSocket ๐Ÿ”’

Enumsยง

SocketState ๐Ÿ”’

Constantsยง

INITIAL_TCP_SOCKET_READINESS ๐Ÿ”’
On Linux a TCP socket is initally in the TCP_CLOSE state: See https://github.com/torvalds/linux/blob/cee9395/net/core/sock.c#L3753 For a socket in this state, (E)POLLHUP is reported: See https://github.com/torvalds/linux/blob/980a813/net/ipv4/tcp.c#L581-L582 Additionally, because the write buffer is initially empty and the socket is not shut down, (E)POLLOUT is also reported for freshly created TCP sockets: See https://github.com/torvalds/linux/blob/980a813/net/ipv4/tcp.c#L602

Traitsยง

EvalContextPrivExt ๐Ÿ”’