public ZZClientManager(TcpClient tcpClient, bool ownsClient, ZZServer server) { _tcpClient = tcpClient; _ownsClient = ownsClient; Server = server; DelegateAction del = new DelegateAction(); del.act = ProcessLogin; connection = new ServerConnection(_tcpClient, this); connection.PutDelegate(del); ConsoleEx.WriteLine("Client conectado"); }
public static void Run() { ConsoleEx.WriteLine("============================================"); ConsoleEx.WriteLine("============================================"); ConsoleEx.WriteLine("||||||||||Bem vindo a Zane & Zane|||||||||||"); ConsoleEx.WriteLine("============================================"); ConsoleEx.WriteLine("============================================"); try { ZZServer = new ZZServer(DebugIp, Port); ZZServer.Start(); } catch (InvalidCastException e) { ConsoleEx.WriteLine("Error :( :" + e.Source); } }