| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
metrics.Metrics --+
|
Peer
A connection to the server. Each connected Client has a paired Peer object instance on the server.
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Properties | |
| address | |
| connected | |
|
in_bytes Count of bytes received (header + data). |
|
| is_server | |
|
latency Round-trip latency in ms |
|
| message_factory | |
|
out_buffer_bytes Count of bytes waiting to be transmitted on the wire. |
|
|
out_bytes Count of bytes recieved (header + data). |
|
| timeout | |
| last_packet_sent_at | |
|
in_messages Count of messages received. (Inherited from legume.metrics.Metrics) |
|
|
in_packets Count of packets received. (Inherited from legume.metrics.Metrics) |
|
|
keepalive_count Count of keep-alive Ping or Pong messages sent/received. (Inherited from legume.metrics.Metrics) |
|
|
out_messages Count of messages sent. (Inherited from legume.metrics.Metrics) |
|
|
out_packets Count of packets sent. (Inherited from legume.metrics.Metrics) |
|
|
pending_acks Packets that have not yet been acknowledged. (Inherited from legume.metrics.Metrics) |
|
|
reorder_queue Number of out-of-order messages received that are waiting to be inserted into the message stream. (Inherited from legume.metrics.Metrics) |
|
|
Inherited from |
|
| Method Details |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Adds a packet to the outgoing buffer to be sent to the client. This does not set the in-order or reliable flags. packet is an instance of BasePacket. Returns the number of bytes added to the output buffer for sending this message (header + message bytes) |
Disconnect this peer. A Disconnected message will be sent to the client and this peer object will be deleted once the outgoing buffer for this connection has emptied. |
| Property Details |
address
|
connected
|
in_bytesCount of bytes received (header + data).
|
is_server
|
latencyRound-trip latency in ms
|
message_factory
|
out_buffer_bytesCount of bytes waiting to be transmitted on the wire.
|
out_bytesCount of bytes recieved (header + data).
|
timeout
|
last_packet_sent_at
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Jul 13 20:33:07 2011 | http://epydoc.sourceforge.net |