I have been looking in this forum about how can I do to send a Char buffer throw an specific ethernet interface.

I have 2 NIC's, whith 2 ADSL connections (each NIC with an ADSL), and already have the code to send a String Message from a computer to another, the problem is that I don't know which interface is my program using.

is it possible to specify the interface for a socket?



maybe I should star looking into another technologies like iptables or firewall to make the interface discrimination. any ideas?