TWSocket.MultiCast

From Overbyte
Jump to navigation Jump to search

Main page -> ICS component reference -> TWSocket -> Multicast

INCOMPLETE! Work in progress...

Definition

property Multicast: Boolean;

Description

Allow socket to listen on a multicast port

Example

Receive multicast

<syntaxhighlight lang="delphi">

 WS.Proto:='udp';
 WS.Addr:='192.168.0.1'; // IP address of the physical adapter I want to bind to
 WS.Port:='5000';  
 WS.MultiCast:=true;
 WS.ReuseAddr:=true;
 WS.MultiCastAddrStr:='239.192.1.1'; // Mutlicast IP  
 WS.Listen;
  

</syntaxhighlight>

Transmit multicast

<syntaxhighlight lang="delphi"> </syntaxhighlight>

How to