net — Network functions

Sockets

net.socket()

Returns a Socket object.

Socket.connect(host, port)

Connects to the specified host on the given port.

Socket.send(str)

Sends str to the socket.

Socket.recv(len)

Receives data from the socket. The maximum amount of data is specified by len.

Project Versions

Table Of Contents

Previous topic

os — Operating system interfaces

Next topic

math — Mathematical functions

This Page