Interface selection

I

ias0nas

Hello,

How can I select on wich interface a socket will connect to?
Say I have a pc with one network card and a 56K modem, how can I select
on wich interface will the socket connect?

Thank you
 
D

Diez B. Roggisch

Hello,

How can I select on wich interface a socket will connect to?
Say I have a pc with one network card and a 56K modem, how can I select
on wich interface will the socket connect?

you need to specify the ip address that interface has been assigned to in
the bind-call.
 
D

Diez B. Roggisch

Actually its not a server. I dont do any binding call, just a connect.

Then where is your problem? The two interfaces have been assigned distinct
IPs, so connect to the appropriate one.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,792
Messages
2,569,639
Members
45,353
Latest member
RogerDoger

Latest Threads

Top