public void Register() { TS2Packet packet = new TS2Packet(); packet.Create(TS2.STANDARD, TS2.REGISTER, this.SessionKey, this.ClientID, this.SequenceNumber); packet.Register(txtUsername.Text, txtPassword.Text); net.Send(packet.toByteArray(), Target); }