Trees | Index | Help |
|
---|
Package twisted :: Package internet :: Module protocol :: Class AbstractDatagramProtocol |
|
DatagramProtocol
Method Summary | |
---|---|
__getstate__(self)
| |
Called when a datagram is received. | |
Make sure startProtocol is called. | |
Make sure stopProtocol is called. | |
Make a connection to a transport and a server. | |
Called when a transport is connected to this protocol. | |
Called when the transport is disconnected. |
Class Variable Summary | |
---|---|
bool |
noisy = True
|
int |
numPorts = 0 |
NoneType |
transport = None |
Method Details |
---|
datagramReceived(self, datagram, addr)Called when a datagram is received.
|
doStart(self)Make sure startProtocol is called. This will be called by makeConnection(), users should not call it. |
doStop(self)Make sure stopProtocol is called. This will be called by the port, users should not call it. |
makeConnection(self, transport)Make a connection to a transport and a server. This sets the 'transport' attribute of this DatagramProtocol, and calls the doStart() callback. |
startProtocol(self)Called when a transport is connected to this protocol. Will only be called once, even if multiple ports are connected. |
stopProtocol(self)Called when the transport is disconnected. Will only be called once, after all ports are disconnected. |
Class Variable Details |
---|
noisy
|
numPorts
|
transport
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Aug 16 09:55:15 2007 | http://epydoc.sf.net |