Python LanguageSockets

Introduction

Many programming languages use sockets to communicate across processes or between devices. This topic explains proper usage the the sockets module in Python to facilitate sending and receiving data over common networking protocols.

Parameters

ParameterDescription
socket.AF_UNIXUNIX Socket
socket.AF_INETIPv4
socket.AF_INET6IPv6
socket.SOCK_STREAMTCP
socket.SOCK_DGRAMUDP

Related Examples

Multi-threaded TCP Socket Server