Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Internal packet routing

 
Jon Chia
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8791
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic