pynetdicom.transport.RequestHandler#

class pynetdicom.transport.RequestHandler(request, client_address, server)[source]#

Connection request handler for the AssociationServer.

client_address#

The (host, port) or (host, port, flowinfo, scope_id) of the remote.

Type:

tuple[str, int] | tuple[str, int, int, int]

request#

The (unaccepted) client socket.

Type:

socket.socket

server#

The server that received the connection request.

Type:

transport.AssociationServer or transport.ThreadedAssociationServer

__init__(request, client_address, server)[source]#

Methods

__init__(request, client_address, server)

finish()

handle()

Handle an association request.

setup()

Attributes

ae

Return the server's parent AE.

local

Return the local server's address information.

remote

Return the remote client's address information.

server

property ae: ApplicationEntity#

Return the server’s parent AE.

handle() None[source]#

Handle an association request.

  • Creates a new Association acceptor instance and configures it.

  • Sets the Association’s socket to the request’s socket.

  • Starts the Association reactor.

property local: AddressInformation#

Return the local server’s address information.

Changed in version 3.0: Now returns a AddressInformation instance.

property remote: AddressInformation#

Return the remote client’s address information.

Changed in version 3.0: Now returns a AddressInformation instance.