TWSocket.MultiCast

From Overbyte
Revision as of 07:41, 24 July 2011 by Emabiz (talk | contribs) (Created page with ' Main page -> ICS component reference -> TWSocket -> Multicast <font color="red">INCOMPLETE! Work in p…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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