예제 #1
0
 public NetworkHandler(int port, NotesStorage notesStorage, UserStorage userStorage)
 {
     this.port = port;
     this.notesStorage = notesStorage;
     this.userStorage = userStorage;
     clients = new Dictionary<TcpClient, NetworkUser>();
 }
예제 #2
0
파일: Program.cs 프로젝트: xopuct/notes
 static void Main(string[] args)
 {
     UserStorage userStorage = new UserStorage("ololo");
     NotesStorage notesStorage = new NotesStorage();
     NetworkHandler hndlr = new NetworkHandler(5555, notesStorage, userStorage);
     hndlr.StartServer();
 }