Network

class sharpy.io.network_interface.Network(host=None, port=None)[source]

Network Adapter

Contains the basic methods. See InNetwork and OutNetwork for specific settings pertaining to the input and output sockets.

The settings that this solver accepts are given by a dictionary, with the following key-value pairs:

Name

Type

Description

Default

address

str

Own network address.

127.0.0.1

port

int

Own port.

65000

set_client_list(list_of_clients)[source]

Set a client list for network.

Parameters

list_of_clients (list) – List of tuples containing (HOST, PORT), where HOST is a string and port and integer.

set_selector_events_mask(mode)[source]

Set selector to listen for events: mode is ‘r’, ‘w’, or ‘rw’.