ID EN
Socket

SOCK_STREAM

Python 3.11

These constants represent the socket types, used for the second argument to socket(). More constants may be available depending on the system. (Only SOCK_STREAM and SOCK_DGRAM appear to be generally useful.)

Syntax

PYTHON
socket.SOCK_STREAM

See Also

socket() SOCK_STREAM SOCK_DGRAM