public User(Client networkPart) { this.NetworkHandler = networkPart; }
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(); }
public Packet(string packet, Client sender = null, bool skipHeaders = true) { _params = packet.Split('|'); position = skipHeaders ? 1 : -1; this.Sender = sender; }