receive()
Receive data from a connection.
Usage
receive(
conn,
size=1024,
)Parameters
conn: object-
An open connection handle.
size: int = 1024-
Maximum number of bytes to read.
Returns
bytes-
The received data.
See Also
- send(): Transmit data over a connection.
- disconnect(): Close the connection when done.