Multicast support in NetSocket/PacketPeerUDP
This commit is contained in:
@ -37,6 +37,29 @@
|
||||
Returns whether this [PacketPeerUDP] is listening.
|
||||
</description>
|
||||
</method>
|
||||
<method name="join_multicast_group">
|
||||
<return type="int" enum="Error">
|
||||
</return>
|
||||
<argument index="0" name="multicast_address" type="String">
|
||||
</argument>
|
||||
<argument index="1" name="interface_name" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Join the multicast group specified by [code]multicast_address[/code] using the interface identified by [code]interface_name[/code].
|
||||
You can join the same multicast group with multiple interfaces. Use [method IP.get_local_interfaces] to know which are available.
|
||||
</description>
|
||||
</method>
|
||||
<method name="leave_multicast_group">
|
||||
<return type="int" enum="Error">
|
||||
</return>
|
||||
<argument index="0" name="multicast_address" type="String">
|
||||
</argument>
|
||||
<argument index="1" name="interface_name" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Remove the interface identified by [code]interface_name[/code] from the multicast group specified by [code]multicast_address[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="listen">
|
||||
<return type="int" enum="Error">
|
||||
</return>
|
||||
|
||||
Reference in New Issue
Block a user