No route to host exception
843790May 16 2008 — edited May 21 2008Hi 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