#include <mcllib/MCSocket.h>
Inheritance diagram for MCCLSocket:
Public Member Functions | |
void | addMulticast (const MCNetAddr &group, const MCNetAddr &mcastIf) |
Join a multicast group. | |
void | dropMulticast (const MCNetAddr &group, const MCNetAddr &mcastIf) |
Leave a multicast group. | |
bool | getBroadcast () const |
Determine if broadcast is allowed on the socket. | |
MCNetAddr | getMulticastIf () const |
Get the multicast interface address. | |
mcuint32 | getMulticastTtl () const |
Determine the multicast time to live of the socket. | |
void | setBroadcast (bool broadcast) |
Control whether broadcast is allowed on the socket. | |
void | setMulticastIf (const MCNetAddr &mcastIf) |
Set the multicast interface address. | |
void | setMulticastTtl (mcuint32 mcastTtl) |
Set the multicast time to live. | |
Protected Member Functions | |
MCCLSocket (void *impl) | |
Construct from an implementation. | |
MCCLSocket () | |
Default constructor for use by derived classes. |
Connection-less sockets do not have a permanent peer to which they are connected. Instead, each time data is sent, the address to send to must be specified. Similarly, each time data is received, it is possible (although not mandatory) to obtain the address of the remote peer which sent the data (see recvFrom()).
Due to their connection-less nature, these sockets support broadcast (where data is sent to all remote addresses in a "broadcast domain" simultaneously, using a special broadcast address) and multicast (where data is sent to participating remote addresses in a "multicast group" simultaneously, using a special multicast address).
|
Construct from an implementation. The implementation object must be derived from MCCLSockBaseImpl |
|
Join a multicast group.
|
|
Leave a multicast group.
|
|
Determine if broadcast is allowed on the socket.
|
|
Get the multicast interface address.
|
|
Determine the multicast time to live of the socket.
|
|
Control whether broadcast is allowed on the socket.
|
|
Set the multicast interface address.
|
|
Set the multicast time to live.
|