Class a.s.NetEndpoint:

Part of aculab.switching View Source View In Hierarchy

An endpoint on a network port.

Endpoints are used to close a Connection. They do all their work in close or upon destruction (which calls close).
Method __init__ Initialize an endpoint.
Method close Disable the endpoint.
Method __del__ Close the endpoint if it is still open
Method __repr__ Print a representation of the endpoint.
def __init__(self, sw, port, ts): (source)
Initialize an endpoint.
ParametersswHandle for the switch card. On v6, this is an ACU_CARD_ID, on v5, this is an index to the card.
portThe network port. On v6, this is an ACU_PORT_ID, on v5, it is the index of the module (restarts at zero for each new card)
tsA tuple (stream, timeslot)
def close(self): (source)

Disable the endpoint.

This method will assert a silence pattern on the network timeslot.

The silence pattern (alaw or mulaw) is inferred from the line type via call_line. E1 ports are assumed to be alaw, everything else mulaw.
def __del__(self): (source)
Close the endpoint if it is still open
def __repr__(self): (source)
Print a representation of the endpoint.
API Documentation for pyAculab, generated by pydoctor at 2009-01-02 15:12:29.