Go to the latest version of this document.

# ``twisted`.`internet`.`_multicast`.`MulticastMixin``

class documentation

`class MulticastMixin: (source)`

Known subclasses: `twisted.internet.iocpreactor.udp.MulticastPort`, `twisted.internet.udp.MulticastPort`

View In Hierarchy

Implement multicast functionality.

Method | `getLoopbackMode` | Undocumented
Method | `getOutgoingInterface` | Undocumented
Method | `getTTL` | Undocumented
Method | `joinGroup` | No summary
Method | `leaveGroup` | No summary
Method | `setLoopbackMode` | Undocumented
Method | `setOutgoingInterface` | No summary
Method | `setTTL` | Undocumented
Class Variable | `addressFamily` | Undocumented
Class Variable | `reactor` | Undocumented
Class Variable | `socket` | Undocumented
Method | `_addrpack` | Pack an IP address literal into bytes, according to the address family of this transport.
Method | `_joinleave` | Undocumented
Property | `_ipproto` | Undocumented
Property | `_joingroup` | Undocumented
Property | `_leavegroup` | Undocumented
Property | `_multiif` | Undocumented
Property | `_multiloop` | Undocumented

def getLoopbackMode(self) -> `bool`: (source)

Undocumented

def getOutgoingInterface(self) -> `str | int`: (source)

Undocumented

def getTTL(self) -> `int`: (source)

Undocumented

def joinGroup(self, addr: `str`, interface: `str` = '') -> `Deferred[None]`: (source)

See Also
`IMulticastTransport.joinGroup`

def leaveGroup(self, addr: `str`, interface: `str` = '') -> `Deferred[None]`: (source)

See Also
`IMulticastTransport.leaveGroup`

def setLoopbackMode(self, mode: `int`): (source)

Undocumented

def setOutgoingInterface(self, addr: `str | int`) -> `Deferred[int]`: (source)

See Also
`IMulticastTransport.setOutgoingInterface`

def setTTL(self, ttl: `int`): (source)

Undocumented

addressFamily: `socket.AddressFamily` = (source)

Undocumented

reactor: `Any` = (source)

Undocumented

socket: `socket.socket` = (source)

Undocumented

def _addrpack(self, addr: `str`) -> `bytes`: (source)

Pack an IP address literal into bytes, according to the address family of this transport.

def _joinleave(self, addr: `str`, interface: `str`, join: `bool`) -> `Deferred[None]`: (source)

Undocumented

@property
_ipproto: `int` = (source)

Undocumented

@property
_joingroup: `int` = (source)

Undocumented

@property
_leavegroup: `int` = (source)

Undocumented

@property
_multiif: `int` = (source)

Undocumented

@property
_multiloop: `int` = (source)

Undocumented