Hi,

i use the following code to send udp broadcast packets:

Socket := TUDPBlockSocket.create;
Socket.EnableBroadcast(true);
Socket.Connect('255.255.255.255', 2222);
Socket.SendString('some text');

It works perfekt on machines with only one network interface, but if the machine has more than one interface (or multiple IP-Addresses bound on one Interface) i can not specify which source address will be used for the packet.
The OS will make the decision, but this is not always what i want ;-)

Is there a way to specify the source address for the packet ?

Alex
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to