| Description | Hierarchy | Fields | Methods | Properties | 
type unaMulticastSocket = class(unaUdpSocket)
interface to join on */
– unaMulticastSocket –
![]()  | 
function mjoin(const groupAddr: string; ioFlags: int = c_unaMC_receive or c_unaMC_send; ttl: int = IP_DEFAULT_MULTICAST_TTL; disableLoop: bool = false): int; | 
![]()  | 
function mleave(const groupAddr: string = ''): int; | 
![]()  | 
function sendData(data: pointer; len: int; noCheck: bool = false): int; overload; | 
![]()  | 
function sendData(const data: aString; noCheck: bool = false): int; overload; | 
![]()  | 
function setIF(const intf: string): int; | 
![]()  | 
function setLoopEnable(enable: bool): int; | 
![]()  | 
property TTL: DWORD read f_ttl write setTTL; | 
![]()  | 
function mjoin(const groupAddr: string; ioFlags: int = c_unaMC_receive or c_unaMC_send; ttl: int = IP_DEFAULT_MULTICAST_TTL; disableLoop: bool = false): int; | 
| 
 Joins the specified group. Also binds a socket to port and interface specified by bindToPort and bindToIP property (or default interface/port if bindToIP = '0.0.0.0'/Port = 0). Use recvfrom() to receive multicast packets from a group(s). User sendData() to send multicast packets. 
 Parameters
 Returns0 for success, or socket-specific error code otherwise.  | |
![]()  | 
function mleave(const groupAddr: string = ''): int; | 
| 
 Leaves the specified group (or a group it joined in a previous successfull call to recGroupJoin() if groupAddr = ''). 
 Parameters
 Returns0 for success, or socket-specific error code otherwise.  | |
![]()  | 
function sendData(data: pointer; len: int; noCheck: bool = false): int; overload; | 
| 
 Sends a multicast packet into the group. Returns0 for success, or socket-specific error code otherwise.  | |
![]()  | 
function sendData(const data: aString; noCheck: bool = false): int; overload; | 
| 
 Sends a multicast packet into the group. Returns0 for success, or socket-specific error code otherwise.  | |
![]()  | 
function setIF(const intf: string): int; | 
| 
 Assigns new IF to be used with the socket. Socket must be created. 
 Parameters
 Returns0 if successfull or specific WSA error otherwise.  | |
![]()  | 
function setLoopEnable(enable: bool): int; | 
| 
 Enables/disbale local loopback. Socket must be created. 
 Parameters
 Returns0 if successul, WSA error otherwise  | |
![]()  | 
property TTL: DWORD read f_ttl write setTTL; | 
| 
 TTL  | |
(c) 2012 Lake of Soft