Package legume :: Module connection :: Class Connection
[frames] | no frames]

Class Connection

object --+
         |
        Connection

Instance Methods
 
__init__(self, parent=None, message_factory=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
process_inbound_packet(self, data)
 
update(self)
Send any packets that are in the output buffer and read any packets that have been received.
 
send_message(self, message, ordered=False, reliable=False)
Send a message and specify any options for the send method used.
 
send_reliable_message(self, message)
Send a message that is guaranteed to be delivered.
 
send_inorder_message(self, message)
Send a message in the in-order channel.
 
has_outgoing_packets(self)
Returns whether this buffer has any packets waiting to be sent.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  MTU = 1400
  MESSAGE_TRANSPORT_HEADER = 'HHB'
  RECENT_MESSAGE_LIST_SIZE = 1000
  MINIMUM_RESEND_DELAY_MS = 0.01
Properties
  out_buffer_bytes
  latency
  in_bytes
  out_bytes
  reorder_queue
  keepalive_count

Inherited from object: __class__

Method Details

__init__(self, parent=None, message_factory=None)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

send_message(self, message, ordered=False, reliable=False)

 

Send a message and specify any options for the send method used.
A message sent inOrder is implicitly sent as reliable.
message is an instance of a subclass of packets.BasePacket.
Returns the number of bytes added to the output queue for this
message (header + message).

send_reliable_message(self, message)

 

Send a message that is guaranteed to be delivered.
message is an instance of a subclass of packets.BasePacket

send_inorder_message(self, message)

 

Send a message in the in-order channel. Any packets sent in-order will
arrive in the order they were sent.
message is an instance of a subclass of packets.BasePacket


Property Details

out_buffer_bytes

Get Method:
unreachable.out_buffer_bytes(self)

latency

Get Method:
unreachable.latency(self)

in_bytes

Get Method:
unreachable.in_bytes(self)

out_bytes

Get Method:
unreachable.out_bytes(self)

reorder_queue

Get Method:
unreachable.reorder_queue(self)

keepalive_count

Get Method:
unreachable.keepalive_count(self)