Click to See Complete Forum and Search --> : Win/Unix Sockets, using a specific local adapter.


japanfred
September 17th, 2008, 03:41 AM
Hi Guys,

When it comes to binding, so i can listen for a connection, i understand how to set which network adapter i want to listen with, which is fine and dandy.

My question is, where can i set which device i want to connect with?

Basically, i've got two network adapters, one wired, one wireless. Both with different IP addresses.

When i call connect(), i want to be able to say 'Connect to 192.168.1.10 using the Wired adapter', but i can't seem to find any documentation on how to do this?

Really hope i'm just being silly, as there must be a way.

Cheers guys,
D

henky@nok.co.id
September 20th, 2008, 01:01 PM
In TCP/IP socket, you can't choose which device you want to connect.
You just can choose which IP you want to connect.