Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

No route to host exception

843790May 16 2008 — edited May 21 2008
Hi all,
I have a one hop topology set up with 3 nodes A, B, C s.t A and C cannot directly communicate with each other. B on the other hand can listen and forward packets to both A and C. I am trying to use aodv routing protocol to send packets from C to A via B.
My problem is that when C tries to create a socket connection to A by using

Socket(String host, int port)

it gives the error NoRouteToHost.

From what I have understood it looks like when the above statement is executed packets are being sent but before aodv can establish the route it times out......and hence gives the exception

If this is indeed the case, is there any way of making the socket statement send more packets or wait for sometime longer so that aodv can establish the route in the meantime and then send the packets accordingly.

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 18 2008
Added on May 16 2008
18 comments
378 views