private void Tela_Load(object sender, EventArgs e) { funcoes = new Itens_Compartilhados.Funcoes(); carregaCartas(); inicia_Informacoes(); Super_Trunfo_Servidor.Execucao server = new Super_Trunfo_Servidor.Execucao(); threadServidor = new Thread(() => server.executar()); toolStripStatusLabel3.Text = "IP: " + funcoes.retornaIP(); }
static void Main(string[] args) { try { Super_Trunfo_Servidor.Execucao server = new Super_Trunfo_Servidor.Execucao(); server.executar(); } catch (SocketException e) { Console.WriteLine(e); } }