#include <network_ip_udp.h>
A UDP network socket that is bound to a local address and thus able to receive data.
公共成员函数 |
|
MAXON_METHOD Result < void > | JoinMulticastGroup (const NetworkIpAddr &groupAddress) |
MAXON_METHOD Result < void > | LeaveMulticastGroup (const NetworkIpAddr &groupAddress) |
MAXON_METHOD NetworkIpAddrPort | GetLocalAddress () const |
私有成员函数 |
|
MAXON_INTERFACE ( NetworkUdpBoundSocketInterface , MAXON_REFERENCE_NORMAL , "net.maxon.interface.networkudpboundsocket") |
|
private |
MAXON_METHOD Result <void> JoinMulticastGroup | ( | const NetworkIpAddr & | groupAddress | ) |
Joins a multicast group. The given groupAddress must be a valid multicast address and its protocol must match that of the socket (i.e. no mixing of IPv4 and IPv6); otherwise, an error will be returned.
MAXON_METHOD Result <void> LeaveMulticastGroup | ( | const NetworkIpAddr & | groupAddress | ) |
Leaves a multicast group. Results in an error if the group was not previously joined.
MAXON_METHOD NetworkIpAddrPort GetLocalAddress | ( | ) | const |
Returns the local address this socket is bound to. May be a wildcard address.