public void Read(UruStream s) { fParentIdx = s.ReadUInt(); fChildIdx = s.ReadUInt(); fSaverIdx = s.ReadUInt(); s.ReadByte(); //Seen }
public void Read(UruStream s) { fType = (EConnType)s.ReadByte(); fSockHeaderSize = s.ReadUShort(); fBuildID = s.ReadUInt(); fBuildType = (NetCliBuildType)s.ReadUInt(); fBranchID = s.ReadUInt(); fProductID = new Guid(s.ReadBytes(16)); }
protected virtual bool NetCliConnect(int g) { UruStream s = new UruStream(new NetworkStream(fSocket, false)); //NetCliConnect ISetupKeys(g); s.BufferWriter(); s.WriteByte((byte)NetCliConnectMsg.kNetCliConnect); s.WriteByte(66); s.WriteBytes(fDhData); s.FlushWriter(); //Recv NetCliEncrypt if (s.ReadByte() != (byte)NetCliConnectMsg.kNetCliEncrypt) { fSocket.Close(); return false; } byte[] seed = s.ReadBytes((int)(s.ReadByte() - 2)); ISetupEncryption(seed); s.Close(); return true; }