Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            BetterThenSQL context = new BetterThenSQL();

            context.ReadFromBd();
            server         = new Server();
            threadListener = new Thread(server.Starting);
            threadListener.Start();
        }
Ejemplo n.º 2
0
 public User(TcpClient client, Server server, string name, string password, StreamWriter writer, StreamReader reader) : base(client, server)
 {
     Reader   = reader;
     Writer   = writer;
     Client   = client;
     Server   = server;
     Name     = name;
     Password = password;
     Server.clients.Add(this);
     sql = new BetterThenSQL(name, password);
 }