Home | Trees | Index | Help |
|
---|
Package twisted :: Package internet :: Module interfaces :: Class IUDPTransport |
|
Interface
--+
|
IUDPTransport
Method Summary | |
---|---|
Connect the transport to an address. | |
Returns IPv4Address. | |
Write packet to given address. |
Method Details |
---|
connect(self, host, port)Connect the transport to an address. This changes it to connected mode. Datagrams can only be sent to this address, and will only be received from this address. In addition the protocol's connectionRefused method might get called if destination is not receiving datagrams.
|
getHost(self)Returns IPv4Address. |
write(self, packet, addr=None)Write packet to given address. @param addr: a tuple of (ip, port). For connected transports must be the address the transport is connected to, or None. In non-connected mode this is mandatory. @raise L{MessageLengthError<twisted.internet.error.MessageLengthError>} |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:53 2004 | http://epydoc.sf.net |