コード例 #1
0
 public MultiplayerServer(int port, IMultiplayerServerListener serverListener, IMultiplayerClientListener clientListener)
 {
     this.serverListener = serverListener;
     this.clientListener = clientListener;
     serverSocket        = new TcpListener(IPAddress.Any, port);
     serverSocket.Start();
 }
コード例 #2
0
 public MultiplayerServer(int port, IMultiplayerServerListener serverListener, IMultiplayerClientListener clientListener)
 {
     this.serverListener = serverListener;
     this.clientListener = clientListener;
     serverSocket = new TcpListener(IPAddress.Any, port);
     serverSocket.Start();
 }