Public Member Functions | Public Attributes
rosbridge_tools.tornado.iostream.PipeIOStream Class Reference
Inheritance diagram for rosbridge_tools.tornado.iostream.PipeIOStream:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def close_fd
def fileno
def read_from_fd
def write_to_fd

Public Attributes

 fd

Detailed Description

Pipe-based `IOStream` implementation.

The constructor takes an integer file descriptor (such as one returned
by `os.pipe`) rather than an open file object.  Pipes are generally
one-way, so a `PipeIOStream` can be used for reading or writing but not
both.

Definition at line 1308 of file iostream.py.


Constructor & Destructor Documentation

def rosbridge_tools.tornado.iostream.PipeIOStream.__init__ (   self,
  fd,
  args,
  kwargs 
)

Definition at line 1316 of file iostream.py.


Member Function Documentation

Closes the file underlying this stream.

``close_fd`` is called by `BaseIOStream` and should not be called
elsewhere; other users should call `close` instead.

Reimplemented from rosbridge_tools.tornado.iostream.BaseIOStream.

Definition at line 1324 of file iostream.py.

Returns the file descriptor for this stream.

Reimplemented from rosbridge_tools.tornado.iostream.BaseIOStream.

Definition at line 1321 of file iostream.py.

Attempts to read from the underlying file.

Returns ``None`` if there was nothing to read (the socket
returned `~errno.EWOULDBLOCK` or equivalent), otherwise
returns the data.  When possible, should return no more than
``self.read_chunk_size`` bytes at a time.

Reimplemented from rosbridge_tools.tornado.iostream.BaseIOStream.

Definition at line 1330 of file iostream.py.

Attempts to write ``data`` to the underlying file.

Returns the number of bytes written.

Reimplemented from rosbridge_tools.tornado.iostream.BaseIOStream.

Definition at line 1327 of file iostream.py.


Member Data Documentation

Definition at line 1316 of file iostream.py.


The documentation for this class was generated from the following file:


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