Je veux écrire une simple application client-serveur fileté à plusieurs et j'ai trébuché sur ces deux tout en créant tcplistenrAcceptTcpClient vs AcceptSocket
public void serverListenr
{
int MessageLength=0;
TcpListener peerListener = _infrastructure_TcpServerAndClient.CreateNewTcpListenerANDstart();
while (true)
{
//var Client = peerListener.AcceptTcpClient or peerListener.AcceptSocket(); ??
new Thread(ServeData).Start(client);
}
....
}
ils ont la même description
Quelle est la différence entre ces deux?