Hi,
I have DIR 615 E4 router, and I have installed the following on it : Backfire 10.3.1 RC5
I have written a program which continuously polls another server for any packets. If any packets are received, then, it replies with some packets/takes some action.
I am using the TCP (Blocking sockets) for this.
I deployed the program on the router and executed it.
It works correctly for sometime. Then, it unexpectedly hangs up. By that I mean that it just does nothing. It stays there as it is. I have to force end the program, then restart the program, and then it again runs for sometime before hanging up.
I took the program off from the router and ran it from my linux machine (PC). It works correctly.
I am not understanding why this error is occuring.
Any help will be greatly appreciated.
My socket functions :
SOCKET CREATE - socket(AF_INET,SOCK_STREAM,0)
SEND command - write(sockfd, what_to_write, how_much);
RECEIVE COMMAND - read(sockfd, what, how_much);
I am implementing this in a while loop.
My packet size is of 20 Bytes.
Plz. help me.
Regards,
Darshan
(Last edited by darshan on 9 Jun 2012, 11:16)