Ejemplo n.º 1
0
 public MusicServerT(Socket client, MusicServer s)
 {
     // Preenche os campos e seta a priopridade desta Thread
     this.client = client;
     this.servidor = s;
     this.tipocon = "";
 }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            // TODO: Inserir endereço IP do servidor e IP como parâmetro
            MusicServer s = new MusicServer();

            int pp;

            if(args.Length.Equals(0))
                pp = 100;
            else
                pp = int.Parse(args[0]);

               s.IniciaServico(pp);
               // s.IniciaServico(100);
        }