/// <summary> /// Para a escuta do servidor /// </summary> public void Stop() { NetworkComms.Shutdown(); ServerLog.Write("!.....Server desativado manualmente.................."); }
private static void PrintOutputMessage(PacketHeader header, Connection connection, string message) { string conn = connection.ToString().Replace("[TCP-E-E]", "").Split('-').First().Trim(); ServerLog.Write("[" + DateTime.Now + "][Output..][" + conn.ToString() + "][" + message + "]"); }
/// <summary> /// Inicia a escuta do servidor /// </summary> /// <param name="response"></param> public void Start(out string response) { SynchronousStart(this.Port, out response); ServerLog.Write("!.....Server iniciado................................"); }