Module pyinsim :: Class _Buffer
[hide private]
[frames] | no frames]

Class _Buffer

source code

Class to manage the receive buffer.

Instance Methods [hide private]
 
__init__(self)
Initailise the _Buffer() object.
source code
 
receive(self, data)
Append received data onto the buffer.
source code
string
packets(self)
Get all completed packets currently in the buffer.
source code
Method Details [hide private]

receive(self, data)

source code 

Append received data onto the buffer.

Parameters:
  • data (string) - Binary formatted string.

packets(self)

source code 

Get all completed packets currently in the buffer.

Returns: string
The next completed packet, as a binary formatted string.