Classes | Functions | Variables
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

def tornado.iostream._double_prefix (   deque) [private]
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 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.

tuple tornado::iostream::_ERRNO_INPROGRESS = (errno.EINPROGRESS,)

Definition at line 72 of file iostream.py.

tuple 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_server
Author(s): Jonathan Mace
autogenerated on Wed Sep 13 2017 03:18:20