Exemple #1
0
 public ClientHandler(Clientele clientele, TcpClient tcpClient)
 {
     _clientele   = clientele;
     _tcpClient   = tcpClient;
     serverThread = new Thread(HandleClientRecevier);
     serverThread.Start();
 }
Exemple #2
0
        public ServerListener(IPAddress ipAddress, int portAddress) : base(ipAddress, portAddress)
        {
            this.IpAddress       = ipAddress;
            this.PortAddress     = portAddress;
            this._currentClients = new Clientele(Environment.CurrentDirectory + "\\userinfo.dat");

            ConsoleBuffer.PrintLine("Server started on socket: " + ipAddress + ":" + portAddress);
        }