Classes | Functions | Variables
rosbridge_tools::tornado::iostream Namespace Reference

Classes

class  BaseIOStream
class  IOStream
class  PipeIOStream
class  SSLIOStream
class  StreamBufferFullError
class  StreamClosedError
class  UnsatisfiableReadError

Functions

def _double_prefix
def _merge_prefix
def doctests

Variables

tuple _ERRNO_CONNRESET
tuple _ERRNO_INPROGRESS = (errno.EINPROGRESS,)
tuple _ERRNO_WOULDBLOCK = (errno.EWOULDBLOCK, errno.EAGAIN)
 _set_nonblocking = None
 ssl = None

Function Documentation

Grow by doubling, but don't split the second chunk just because the
first one is small.

Definition at line 1349 of file iostream.py.

def rosbridge_tools.tornado.iostream._merge_prefix (   deque,
  size 
) [private]
Replace the first entries in a deque of strings with a single
string of up to size bytes.

>>> d = collections.deque(['abc', 'de', 'fghi', 'j'])
>>> _merge_prefix(d, 5); print(d)
deque(['abcde', 'fghi', 'j'])

Strings will be split as necessary to reach the desired size.
>>> _merge_prefix(d, 7); print(d)
deque(['abcdefg', 'hi', 'j'])

>>> _merge_prefix(d, 3); print(d)
deque(['abc', 'defg', 'hi', 'j'])

>>> _merge_prefix(d, 100); print(d)
deque(['abcdefghij'])

Definition at line 1358 of file iostream.py.

Definition at line 1396 of file iostream.py.


Variable Documentation

Initial value:
00001 (errno.ECONNRESET, errno.ECONNABORTED, errno.EPIPE,
00002                     errno.ETIMEDOUT)

Definition at line 65 of file iostream.py.

Definition at line 72 of file iostream.py.

tuple rosbridge_tools::tornado::iostream::_ERRNO_WOULDBLOCK = (errno.EWOULDBLOCK, errno.EAGAIN)

Definition at line 58 of file iostream.py.

Definition at line 47 of file iostream.py.

Definition at line 53 of file iostream.py.



rosbridge_tools
Author(s): Jonathan Mace
autogenerated on Sun Dec 28 2014 11:43:22