IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Accessing multiple networks programatically
If I have a machine with multiple network connections (e.g. wired and wireless or 2 network cards) how can I programatically select the network that I want to use? Is there a standard API? In other words when I open a socket, sometimes I want to use network A and sometimes B. Ideally I would like to be able to do this in Java.
New To answer my own question ...
I see that in Java there is a class NetworkInterface which provides this functionality.
New isnt that what the routing table is for?
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free american and do not reflect the opinions of any person or company that I have had professional relations with in the past 50 years. meep
New In C, you bind your socket to a specific IP
rather than the usual 0.0.0.0

do "man" on "bind" system call

------

179. I will not outsource core functions.
--
[link|http://omega.med.yale.edu/~pcy5/misc/overlord2.htm|.]

     Accessing multiple networks programatically - (bluke) - (3)
         To answer my own question ... - (bluke) - (1)
             isnt that what the routing table is for? -NT - (boxley)
         In C, you bind your socket to a specific IP - (Arkadiy)

Powered by gravity!
64 ms