예제 #1
0
 public User(Client networkPart)
 {
     this.NetworkHandler = networkPart;
 }
예제 #2
0
 private void OnSuccessfulClientConnect(Client client)
 {
     client.Socket.Send(new byte[] { 1, 1 });
     User tracker = new User(client);
     tracker.Thread = new Thread(tracker.HandleUser);
     tracker.Thread.IsBackground = true;
     tracker.Thread.Start();
 }
예제 #3
0
 public Packet(string packet, Client sender = null, bool skipHeaders = true)
 {
     _params = packet.Split('|');
     position = skipHeaders ? 1 : -1;
     this.Sender = sender;
 }