本文整理汇总了C#中MUd.UruStream.WriteUInt方法的典型用法代码示例。如果您正苦于以下问题:C# UruStream.WriteUInt方法的具体用法?C# UruStream.WriteUInt怎么用?C# UruStream.WriteUInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MUd.UruStream
的用法示例。
在下文中一共展示了UruStream.WriteUInt方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Write
public void Write(UruStream s)
{
s.WriteUInt(fTransID);
s.WriteUInt(fAgeMcpID);
s.WriteBytes(fAcctUuid.ToByteArray());
s.WriteUInt(fPlayerID);
}
示例2: Write
public void Write(UruStream s)
{
s.WriteUInt(fParentIdx);
s.WriteUInt(fChildIdx);
s.WriteUInt(fSaverIdx);
s.WriteByte(0);
}
示例3: Connect
public override bool Connect()
{
if (!base.Connect()) return false;
//Send the FileConnectHeader
UruStream s = new UruStream(new NetworkStream(fSocket, false));
s.BufferWriter();
fHeader.Write(s);
s.WriteUInt(12); //Size
s.WriteUInt(0);
s.WriteUInt(0);
s.FlushWriter();
s.Close();
fSocket.BeginReceive(new byte[4], 0, 4, SocketFlags.Peek, new AsyncCallback(IReceive), null);
return true;
}
示例4: Ping
public void Ping(int time)
{
File_PingPong ping = new File_PingPong();
ping.fPingTime = time;
ResetIdleTimer();
lock (fSocket) {
MemoryStream ms = new MemoryStream();
UruStream s = new UruStream(ms);
s.WriteUInt(12);
s.WriteInt((int)FileCli2Srv.PingRequest);
ping.Write(s);
fSocket.Send(ms.ToArray());
s.Close();
ms.Close();
}
}
示例5: Write
public void Write(UruStream s)
{
s.WriteUInt(fParentID);
s.WriteUInt(fChildID);
s.WriteUInt(fSaverID);
}
示例6: Write
public void Write(UruStream s)
{
s.WriteUInt(fChallenge);
}
示例7: Write
public void Write(UruStream s)
{
s.WriteByte((byte)fType);
s.WriteUShort(fSockHeaderSize);
s.WriteUInt(fBuildID);
s.WriteUInt((uint)fBuildType);
s.WriteUInt(fBranchID);
s.WriteBytes(fProductID.ToByteArray());
}
示例8: Write
public void Write(UruStream s)
{
s.WriteUInt(fTransID);
s.WriteUInt((uint)fResult);
s.WriteUInt(fReaderID);
s.WriteInt(fNumFiles);
s.WriteInt(fData.Length / 2); //Wide char buffer...
s.WriteBytes(fData);
}
示例9: RequestBuildID
public uint RequestBuildID()
{
File_BuildIdRequest req = new File_BuildIdRequest();
req.fTransID = IGetTransID();
ResetIdleTimer();
lock (fSocket) {
MemoryStream ms = new MemoryStream();
UruStream s = new UruStream(ms);
s.WriteUInt(12);
s.WriteInt((int)FileCli2Srv.BuildIdRequest);
req.Write(s);
fSocket.Send(ms.ToArray());
s.Close();
ms.Close();
}
return req.fTransID;
}