This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

TCP Timeout for Session

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