Thanks Stefan, I will give it a go.
I think I recognised your name from the Lake of Soft forum. Did you work out that mixing problem? Regards Justin. -----Original Message----- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Stefan Paege Sent: Monday, 1 March 2010 11:37 PM To: twsocket@elists.org Subject: Re: [twsocket] broadcast to one of two adapters only Am 01.03.2010 05:08, schrieb Justin Wright: > I am looking for a way to restrict the broadcasting of my UDP packets to one > of my two network adaptors. This is what I do in such a case: INetTarget: TSockAddrIn; LanOut: TWSocket; // UDP ... INetTarget.sin_addr.S_addr := inet_addr(PAnsiChar('192.168.1.255')); LanOut.SendTo(INetTarget, SizeOf(INetTarget), @OutBuffer[0], PacketLen); -- elektronik-labor CARLS GmbH & Co. KG Stefan Paege Fon: +49 5973 9497-23 Fax: +49 5973 9497-19 ---- elektronik-labor CARLS GmbH & Co. KG Kommanditgesellschaft: Sitz Neuenkirchen, Registergericht Steinfurt HRA 3310 Persönlich haftende Gesellschafterin: elektronik-labor CARLS, Beteiligungsgesellschaft mbH, Sitz Neuenkirchen, Registergericht Steinfurt HRB 4175 Geschäftsführer: Irmgard Carls, Joachim Schulte -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be