Package proton :: Module _transport :: Class Transport
[frames] | no frames]

type Transport

source code


Instance Methods
 
__init__(self, mode=None, _impl=<built-in function pn_transport>) source code
 
log(self, message) source code
 
require_auth(self, bool) source code
 
require_encryption(self, bool) source code
 
bind(self, connection)
Assign a connection to the transport
source code
 
bind_nothrow(self, connection)
Assign a connection to the transport
source code
 
unbind(self)
Release the connection
source code
 
trace(self, n) source code
 
tick(self, now)
Process any timed events (like heartbeat generation).
source code
 
capacity(self) source code
 
push(self, binary) source code
 
close_tail(self) source code
 
pending(self) source code
 
peek(self, size) source code
 
pop(self, size) source code
 
close_head(self) source code
 
sasl(self) source code
 
ssl(self, domain=None, session_details=None) source code

Inherited from _wrapper.Wrapper: __del__, __delattr__, __eq__, __getattr__, __hash__, __ne__, __repr__, __setattr__

Static Methods
 
wrap(impl) source code
Class Variables
  TRACE_OFF = 0
  TRACE_DRV = 4
  TRACE_FRM = 2
  TRACE_RAW = 1
  CLIENT = 1
  SERVER = 2
Properties
  tracer
A callback for trace logging.
  authenticated
  encrypted
  user
  closed
  max_frame_size
Sets the maximum size for received frames (in bytes).
  remote_max_frame_size
  channel_max
Sets the maximum channel that may be used on the transport.
  remote_channel_max
  idle_timeout
The idle timeout of the connection (float, in seconds).
  remote_idle_timeout
  frames_output
  frames_input
  condition
The error condition (if any) of the transport.
  connection
Method Details

__init__(self, mode=None, _impl=<built-in function pn_transport>)
(Constructor)

source code 
Overrides: _wrapper.Wrapper.__init__

tick(self, now)

source code 

Process any timed events (like heartbeat generation). now = seconds since epoch (float).


Property Details

tracer

A callback for trace logging. The callback is passed the transport and log message.

Get Method:
_get_tracer(self)
Set Method:
_set_tracer(self, tracer)

authenticated

encrypted

user

closed

max_frame_size

Sets the maximum size for received frames (in bytes).

Get Method:
_get_max_frame_size(self)
Set Method:
_set_max_frame_size(self, value)

remote_max_frame_size

channel_max

Sets the maximum channel that may be used on the transport.

Get Method:
_get_channel_max(self)
Set Method:
_set_channel_max(self, value)

remote_channel_max

idle_timeout

The idle timeout of the connection (float, in seconds).

Get Method:
_get_idle_timeout(self)
Set Method:
_set_idle_timeout(self, sec)

remote_idle_timeout

frames_output

frames_input

condition

The error condition (if any) of the transport.

Get Method:
_get_condition(self)
Set Method:
_set_condition(self, cond)

connection