Skip to main content

Module session

Module session 

Source

StructsΒ§

SessionCapabilityIter
An iterator over the variants of SessionCapability
SessionClientRequest πŸ”’
Request body for creating a new client session.
SessionClientResponse πŸ”’
Response body for creating a new client session.
SessionCloseClientQuery
SessionConfig πŸ”’

EnumsΒ§

IpProtocol
IP transport protocol
RoutingOptions
SessionCapability
Session capabilities that can be negotiated with the target peer.
SessionTargetSpec
Session target specification.

FunctionsΒ§

adjust_session πŸ”’
close_client πŸ”’
Closes an existing Session listener. The listener must’ve been previously created and bound for the given IP protocol. Once a listener is closed, no more socket connections can be made to it. If the passed port number is 0, listeners on all ports of the given listening IP and protocol will be closed.
create_client πŸ”’
Creates a new client session returning the given session listening host and port over TCP or UDP. If no listening port is given in the request, the socket will be bound to a random free port and returned in the response. Different capabilities can be configured for the session, such as data segmentation or retransmission.
list_clients πŸ”’
Lists existing Session listeners for the given IP protocol.
session_config πŸ”’