public bool Init(int port) { ServerListener = new TcpSocketListener("127.0.0.1", GameServer.Properties.Settings.Default.ServerPort, 10); ServerListener.SocketConnected += OnSocketConnected; return(true); }
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); }