public void Listen() { acceptor = new Acceptor(); acceptor.OnClientConnected += acceptor_OnClientConnected; acceptor.StartListening(mGameServer.port); Logger.Write(Logger.LogTypes.정보, "포트{0} 기다리는중…", mGameServer.port); }
public bool Listen() { try { _Acceptor = new Acceptor(); _ConnectedClients = new List<GameServerConnection>(); _Acceptor.StartListening((int)Program.mServer.port); _Acceptor.OnClientConnected += _Acceptor_OnClientConnected; return true; } catch { return false; } }