G
Guest
I am writing a simple chat program in C# using TcpListener and TcpClient
class. In VB6, Winsock will rise an event when data arrives, but apparently
TcpListener does not have that. So how can I know when data arrives?
One solution I could think of is using Thread to continuously checking
whether there is data arrived or not. Is there a better way to accomplish
this?
Thank you in advance
Won
class. In VB6, Winsock will rise an event when data arrives, but apparently
TcpListener does not have that. So how can I know when data arrives?
One solution I could think of is using Thread to continuously checking
whether there is data arrived or not. Is there a better way to accomplish
this?
Thank you in advance
Won