Home | Trees | Index | Help |
|
---|
Package g4ds :: Package protocols :: Module tcpsocketprotocol :: Class ProtocolImplementation |
|
ProtocolInterface
--+
|
ProtocolImplementation
Method Summary | |
---|---|
Call super constructor and initialise with name. | |
Initialises the TCP socket. | |
Boolean
|
Send a message to the endpoint given. |
Stop listening. | |
Sends each incoming message to the callback. | |
Inherited from ProtocolInterface :
getName
|
Instance Variable Summary | |
---|---|
Function |
_callback : Function to call whenever a new message arrives |
socket.socket |
_server : TCP server instance used for listening. |
Inherited from ProtocolInterface :
_name
|
Method Details |
---|
__init__(self)
Call super constructor and initialise with name.
|
listen(self, callback)Initialises the TCP socket. Parameters are loaded from the config module. |
sendMessage(self, endpoint, message)Send a message to the endpoint given.
|
shutdown(self)Stop listening. |
_waitForMessages(self)Sends each incoming message to the callback. |
Instance Variable Details |
---|
_callbackFunction to call whenever a new message arrives
|
_serverTCP server instance used for listening.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat Oct 22 22:52:47 2005 | http://epydoc.sf.net |