Click here to Skip to main content
15,891,905 members

Comments by detectivejd (Top 2 by date)

detectivejd 22-Dec-22 9:47am View    
I saw your solution but I need to implement the web socket with web page as client part and multi client in a server, I don´t know how use threads to this situation with my current code.
detectivejd 22-Dec-22 8:30am View    
Very well, how can i implement thread to multiple client connection?

Because I added a tcpclient list but i don´t know how implement it


string ip = "127.0.0.1";
int port = 8080;
var server = new TcpListener(IPAddress.Parse(ip), port);

server.Start();
Console.WriteLine("Server has started on {0}:{1}, Waiting for a connection…", ip, port);

TcpClient client = server.AcceptTcpClient();
tcpClients.Add(client);
.....