How to keen network connection active indefinitely

Hi,

I am developing a program (using TcpListener class) to listen for data from a particular client.

Client used to send data once in a while (say once in 30 minutes).

Once connection is established, i want to keep it active indefinitely.

Kindly let me know hoe to achieve it.

Thanks & Regards,
kalai



Answer this question

How to keen network connection active indefinitely

  • RonV

    It will be active indefinitely until you call the Close() method on the socket. Or the client closes the connection.



  • Geof Branch

    HI...first of all...i dont know y u want to keep that connection active

    tell me the reason if you want to/

    and Here's your answer..

    Connection will not close automatically..until you call .close method..

    once it is connected than it will never timeout...

    Write your problem in detail...


  • Brian Chamberlain

    Hi,

    I have understand better and solved it.

    Thanks for your help

    With Regards,

    kalai


  • How to keen network connection active indefinitely