A
Advait Mohan Raut
Hello,
I am writing a server for my own application purpose in C#. For that
I would use TcpListener class 's BeginAcceptSocket method. This will
let me assign separate thread for each connection.
In this scenario I want to include time-out feature i.e. server will
close connection it will be in waiting state for longer time. Now the
problem here is to measure timeout, for each connection do I need to
create one extra thread for each connection ? Or is there any
alternate possible way ?
- Advait
I am writing a server for my own application purpose in C#. For that
I would use TcpListener class 's BeginAcceptSocket method. This will
let me assign separate thread for each connection.
In this scenario I want to include time-out feature i.e. server will
close connection it will be in waiting state for longer time. Now the
problem here is to measure timeout, for each connection do I need to
create one extra thread for each connection ? Or is there any
alternate possible way ?
- Advait