Peach :: Publishers :: stdout :: Stdout :: Class Stdout
[hide private]

Class Stdout

source code


Basic stdout publisher. All data is written to stdout. No input is available from this publisher. Excelent for testing.

Instance Methods [hide private]
 
accept(self)
Accept incoming connection.
source code
 
connect(self) source code
 
close(self)
Close current stream/connection.
source code
 
send(self, data)
Publish some data
source code
string
receive(self, size=None)
Receive some data.
source code
string
call(self, method, args)
Call a method using arguments.
source code

Inherited from publisher.Publisher: property, start, stop

Method Details [hide private]

accept(self)

source code 

Accept incoming connection. Blocks until incoming connection occurs.

Overrides: publisher.Publisher.accept
(inherited documentation)

close(self)

source code 

Close current stream/connection.

Overrides: publisher.Publisher.close
(inherited documentation)

send(self, data)

source code 

Publish some data

Parameters:
  • data - Data to publish
Overrides: publisher.Publisher.send
(inherited documentation)

receive(self, size=None)

source code 

Receive some data.

Parameters:
  • size - Number of bytes to return
Returns: string
data received
Overrides: publisher.Publisher.receive
(inherited documentation)

call(self, method, args)

source code 

Call a method using arguments.

Parameters:
  • method - Method to call
  • args - Array of strings as arguments
Returns: string
data returned (if any)
Overrides: publisher.Publisher.call
(inherited documentation)