> I plan to have a machine with 3 IP addresses and I run my app to listen
> to port 9000. How to do socket programming on handling multiple IP to
> listen to same port? Is it using "bind()" and use "select()" to pass in
> the three socket handle?
I don't know the C semantics but ususaly you use "bind" to install your
server socket and as argument you can give an IP address, which will mean
that you bind *only* to that address. If you want to bind to *all* network
interfaces you use "INADDR_ANY" (0.0.0.0).
if you have linux try "man 7 ip", "man 2 bind", "man socket"
Quote:> I can't try on my own since I don't own multiple IP machine, could
> anybody tell me that what I mention on above correct?
Yes you do, if you have one ethernet card or dialup. The other address is
127.0.0.1 and is called "localhost". Its the local loopback device which
lets you test any network software on the local machine.
> Chin Siang