Hi,
I am trying to set the timeout for the TCP session by modifying the tout arguement in the tcp_get_socket. Is there anyway i can prevent this TCP connection from dying?. After a long time of inactivity my board (which acts like a server) closes the socket and refuses connection from the client(PC). How can I prevent this from closing? else is there anyway to open this socket again ?
U8 tcp_get_socket ( U8 type, /* Type of TCP socket. */ U8 tos, /* Type Of Service. */ U16 tout, /* Idle timeout period before disconnecting. */ U16 (*listener)( /* Function to call when a TCP event occurs. */ U8 socket, /* Socket handle of the local machine. */ U8 event, /* TCP event such as connect, or close. */ U8* ptr, /* Pointer to IP address of remote machine, */ /* or to buffer containing received data. */ U16 par )); /* Port number of remote machine, or length */ /* of received data. */ Thanks!
Kailash
When posting code, make sure the use the pre tags, see:
http://www.keil.com/forum/tips.asp
Makes it easier for us all to read.