F
Frank Rizzo
I got a server application where many PCs around the world will connect
to via TCP/IP. After they are connected I will need to send data to
these PCs every now and then. I need to hang on to the TCP/IP
connection because most of these PCs are behind NATs, firewalls, etc...
so I won't be able to connect to them from the server.
My question is how do hang on to these connections? How do I find out
when the connection has been dropped, disconnected, etc...
I've checked out the Socket, TcpClient, TcpListener classes but none of
them expose any events. With VB6 it was kind of simple: the Port
control exposed a bunch of events (connected, disconnected, etc...).
How do I do this in .NET? Also, any good tutorials on the web would be
welcomed.
Thanks.
to via TCP/IP. After they are connected I will need to send data to
these PCs every now and then. I need to hang on to the TCP/IP
connection because most of these PCs are behind NATs, firewalls, etc...
so I won't be able to connect to them from the server.
My question is how do hang on to these connections? How do I find out
when the connection has been dropped, disconnected, etc...
I've checked out the Socket, TcpClient, TcpListener classes but none of
them expose any events. With VB6 it was kind of simple: the Port
control exposed a bunch of events (connected, disconnected, etc...).
How do I do this in .NET? Also, any good tutorials on the web would be
welcomed.
Thanks.