public void Listen()
        {
            ListenSocket.Listen(10);

            Console.WriteLine("Ready for connections.");

            while (true)
            {
                try
                {
                    Socket clientSocket = ListenSocket.Accept();

                    HydraConnection connection = new HydraConnection(clientSocket);
                    ThreadStart     ts         = new ThreadStart(connection.Handle);
                    Thread          t          = new Thread(ts);
                    t.IsBackground = false;
                    t.Start();
                }
                catch
                {
                }
            }
        }
Exemplo n.º 2
0
 public OnesiteProxyModule(HydraConnection connection)
 {
     Connection = connection;
 }
 public UgcModule(HydraConnection connection)
 {
     Connection = connection;
 }
 public ProfileModule(HydraConnection connection)
 {
     Connection = connection;
 }
 public FeedModule(HydraConnection connection)
 {
     Connection = connection;
 }