Esempio n. 1
0
 public bool Init(int port)
 {
     ServerListener = new TcpSocketListener("127.0.0.1", GameServer.Properties.Settings.Default.ServerPort, 10);
     ServerListener.SocketConnected += OnSocketConnected;
     return(true);
 }
Esempio n. 2
0
 public bool Init(string host = "127.0.0.1", int port = 8000, int blocklog = 10)
 {
     ServerListener = new TcpSocketListener(host, port, blocklog);
     ServerListener.SocketConnected += OnSocketConnected;
     return(true);
 }