Package afx :: Module pubsub :: Class socket_line_reader
[hide private]
[frames] | no frames]

Class socket_line_reader

source code

object --+
         |
        socket_line_reader

A line-reading interface to socket streams.

Instance Methods [hide private]
 
__init__(self, s)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
read_line(self)
Hopefully more performant than af._handle._handle.read_line(), and can read unlimited size strings.
source code
 
read_some_lines(self)
Reads several lines at a time, yielding until at least one line can be read, or the EOF is encountered.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, s)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

read_line(self)

source code 
Hopefully more performant than af._handle._handle.read_line(), and can read unlimited size strings.
Decorators:
  • @af.task

read_some_lines(self)

source code 
Reads several lines at a time, yielding until at least one line can be read, or the EOF is encountered. If there are no lines, returns the empty string.
Decorators:
  • @af.task