SocketType#

Added in version 2.22.

class SocketType#

Flags used when creating a Socket. Some protocols may not implement all the socket types.

Fields#

class SocketType
DATAGRAM#

Connectionless, unreliable datagram passing. (e.g. UDP)

INVALID#

Type unknown or wrong

SEQPACKET#

Reliable connection-based passing of datagrams of fixed maximum length (e.g. SCTP).

STREAM#

Reliable connection-based byte streams (e.g. TCP).