private void TcpServer_MessageReceivedEvent(object sender, SocketEventArgs e)
 {
     Console.WriteLine($"{e.RemoteIpAddress}({e.Port}):{e.MessageBuffer}");
     e.Dispose();
 }
예제 #2
0
 public void Dispose()
 {
     lock (_mutex) { SocketEventArgs.Dispose(); }
 }