aspose file tools*
The moose likes I/O and Streams and the fly likes Internal packet routing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Internal packet routing" Watch "Internal packet routing" New topic
Author

Internal packet routing

Jon Chia
Greenhorn

Joined: Jan 19, 2006
Posts: 1
Hi everybody,

I'm new here, so first of all I'd like to say hello to all of you. I'm also very new with the whole Java programming dealy, so if I'm a bit obtuse please be kind!

I'm currently a senior at college, and I'm studying engineering, and of course we have an engineering design project. For this my group is trying to modify an open source Java VoIP program called SIP-Communicator, but... we are struggling to find a foothold on where to start.

Basically, we need more knowledge on ways to actually route data INSIDE a computer. For example: Lets say I have two active devices on my laptop that can connect to the internet... a WiFi card and a Cellular Card (EV-DO, UMTS, blah whatever -=D). Now I have a Java program spitting out data packets destined for some IP address, 123.456.789.1; I want to take those data packets selectively, and send some to the remote computer through the WiFi connection I have, and some through the Cellular Card connection. So lets say every even numbered packet goes to the computer, 123.456.789.1 throught the WiFi connection and every odd numbered packet goes through the Cellular card. Can anybody direct me towards the correct Java class that does this, or somebody who can help, etc.

Any help is greatly appreciated,
Jon Chia

P.S.: The cellular card will be connected to the computer's PCMCIA slot.
[ January 19, 2006: Message edited by: Jon Chia ]
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Hi, welcome to the ranch!

Look at NetworkInterface class. It can get you an enumeration of the interface cards on your machine. I just Googled and found something that said you can specify which card to use when you connect out, but didn't describe how. Keep looking I bet it's there.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Internal packet routing