A two-way buffer.
An MTU of 1400 bytes is set for the maximum payload of a UDP packet
that can be sent by the buffer. Currently a message cannot span over
multiple UDP packets and a MessageError will be raised.
|
|
|
|
|
| setLatency(self,
latency) |
|
|
|
|
| processMessageAck(self,
message_id) |
|
|
|
|
parsePacket(self,
packet_bytes)
Parse a raw udp packet and return a list of parsed messages. |
|
|
|
|
|
|
|
sendMessage(self,
message,
ordered=False,
reliable=False)
Send a message and specify any options for the send method used. |
|
|
|
|
|
|
|
|
|
|
hasOutgoingPackets(self)
Returns whether this buffer has any packets waiting to be sent. |
|
|
|
|
update(self,
sock,
address)
Update this buffer by sending any messages in the output lists
and read any messages which have been insert into the inputBuffer
via the processInboundPacket call. |
|
|