Package twisted :: Package internet :: Module protocol :: Class ConnectedDatagramProtocol
[show private | hide private]
[frames | no frames]

Class ConnectedDatagramProtocol

AbstractDatagramProtocol --+    
                           |    
            DatagramProtocol --+
                               |
                              ConnectedDatagramProtocol


Protocol for connected datagram-oriented transport, e.g. UDP.
Method Summary
  __getstate__(self)
(inherited from AbstractDatagramProtocol)
  connectionFailed(self, failure)
Called if connecting failed.
  connectionRefused(self)
Called for connection refused error.
  datagramReceived(self, datagram)
Called when a datagram is received.
  doStart(self)
Make sure startProtocol is called. (inherited from AbstractDatagramProtocol)
  doStop(self)
Make sure stopProtocol is called. (inherited from AbstractDatagramProtocol)
  makeConnection(self, transport)
Make a connection to a transport and a server. (inherited from AbstractDatagramProtocol)
  startProtocol(self)
Called when a transport is connected to this protocol. (inherited from AbstractDatagramProtocol)
  stopProtocol(self)
Called when the transport is disconnected. (inherited from AbstractDatagramProtocol)

Method Details

connectionFailed(self, failure)

Called if connecting failed.

Usually this will be due to a DNS lookup failure.

connectionRefused(self)

Called for connection refused error.

Note this is a result of ICMP message generated by *previous* write.

datagramReceived(self, datagram)

Called when a datagram is received.
Parameters:
datagram - the string received from the transport.

Generated by Epydoc 1.1 on Fri Jun 27 03:48:12 2003 http://epydoc.sf.net