A question of vb.net asynchronous communication (estimated novice will meet)

xiaoxiao2021-03-06  41

Just exposed to .NET development, encounter a problem and can not be solved, please teach each as a good man: previously prepared WINSOCK communication program, usually use the Winsock array to save the client's connection. In VB.NET, write asynchronous communication programs The key code is as follows:

MyListener = new TCPListener (iPort) 'Start listening to myListener.Start ()

While (TRUE) DIM NewClient As New EliveClient (MyListener.accepttclient ()) End While

Where ELIVECLIENT is a customer information class I defined, it uses a TCPClient as a parameter for constructing a culvert. So I got a connection, .NET should save this instance of NewClient to a column. When the server accepts many customers How do I retrieve these connections?

转载请注明原文地址:https://www.9cbs.com/read-55197.html

New Post(0)