pynetdicom.transport.RequestHandler

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

Connection request handler for the AssociationServer.

New in version 1.2.

client_address

The (host, port) of the remote.

Type

2-tuple

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 a 2-tuple of the local server's (host, port) address.

remote

Return a 2-tuple of the remote client's (host, port) address.

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: Tuple[str, int]

Return a 2-tuple of the local server’s (host, port) address.

property remote: Tuple[str, int]

Return a 2-tuple of the remote client’s (host, port) address.