Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When creating any socket, we don't provide a device name (like eth0, or wlan0). On my laptop, I have a wired interface (eth) and a wireless interface (wlan). I want to run one process on each interface simultaneously.

Is it possible? I'm using Ubuntu 12.10.

share|improve this question
    
What are you trying to do? (ie, why use 2 interfaces?) –  Vreality Jan 10 '13 at 0:46
add comment

1 Answer

When you create a socket, you can bind() it to a specific IP address. Whichever interface is associated with that address will be used.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.