interface documentation
class IMulticastTransport(IUDPTransport): (source)
Known implementations: twisted.internet.iocpreactor.udp.MulticastPort
, twisted.internet.udp.MulticastPort
Additional functionality for multicast UDP.
Method | get |
Return if loopback mode is enabled. |
Method | get |
Return interface of outgoing multicast packets. |
Method | get |
Get time to live for multicast packets. |
Method | join |
Join a multicast group. Returns Deferred of success or failure. |
Method | leave |
Leave multicast group, return Deferred of success. |
Method | set |
Set if loopback mode is enabled. |
Method | set |
Set interface for outgoing multicast packets. |
Method | set |
Set time to live on multicast packets. |
Inherited from IUDPTransport
:
Method | connect |
Connect the transport to an address. |
Method | get |
Checks if broadcast is currently allowed on this port. |
Method | get |
Get this port's host address. |
Method | set |
Set whether this port may broadcast. |
Method | stop |
Stop listening on this port. |
Method | write |
Write packet to given address. |
Join a multicast group. Returns Deferred
of success or failure.
If an error occurs, the returned Deferred
will fail with error.MulticastJoinError
.
Set interface for outgoing multicast packets.
Returns | |
Deferred[ | Deferred of (1: success, 0: failure). |
Note | |
For IPv4 multicast sockets, the address must be a hostname or IP address. For IPv6 multicast sockets, the address must be an interface index, as described in socket.if_nameindex . |