pynetdicom.transport.T_CONNECT#

class pynetdicom.transport.T_CONNECT(request: A_ASSOCIATE)[source]#

A TRANSPORT CONNECTION primitive

Added in version 2.0.

request#

The A-ASSOCIATE (request) primitive that generated the TRANSPORT CONNECTION primitive.

Type:

pynetdicom.pdu_primitives.A_ASSOCIATE

__init__(request: A_ASSOCIATE) None[source]#

Create a new TRANSPORT CONNECTION primitive.

Parameters:

request (pynetdicom.pdu_primitives.A_ASSOCIATE) – The A-ASSOCIATE (request) primitive to use when making a connection with a peer.

Methods

__init__(request)

Create a new TRANSPORT CONNECTION primitive.

Attributes

address

Return the peer's (str: IP address, int: port).

address_info

Return the peer's IP address information.

result

Return the result of the connection attempt as str.

property address: tuple[str, int]#

Return the peer’s (str: IP address, int: port).

property address_info: AddressInformation#

Return the peer’s IP address information.

Added in version 3.0.

property result: str#

Return the result of the connection attempt as str.

Parameters:

str – The result of the connection attempt, "Evt2" if the connection succeeded, "Evt17" if it failed.

Returns:

The result of the connection attempt, "Evt2" if the connection succeeded, "Evt17" if it failed.

Return type:

str