Ejemplo n.º 1
0
 public NetworkHandler(int port, NotesStorage notesStorage, UserStorage userStorage)
 {
     this.port = port;
     this.notesStorage = notesStorage;
     this.userStorage = userStorage;
     clients = new Dictionary<TcpClient, NetworkUser>();
 }
Ejemplo n.º 2
0
 static void Main(string[] args)
 {
     UserStorage userStorage = new UserStorage("ololo");
     NotesStorage notesStorage = new NotesStorage();
     NetworkHandler hndlr = new NetworkHandler(5555, notesStorage, userStorage);
     hndlr.StartServer();
 }