本文整理匯總了C#中PRoCon.Core.Remote.FrostbiteConnection.SendQueued方法的典型用法代碼示例。如果您正苦於以下問題:C# FrostbiteConnection.SendQueued方法的具體用法?C# FrostbiteConnection.SendQueued怎麽用?C# FrostbiteConnection.SendQueued使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PRoCon.Core.Remote.FrostbiteConnection
的用法示例。
在下文中一共展示了FrostbiteConnection.SendQueued方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: DispatchLoginHashedResponse
protected virtual void DispatchLoginHashedResponse(FrostbiteConnection sender, Packet cpRecievedPacket, Packet cpRequestPacket) {
if (cpRequestPacket.Words.Count == 1 && cpRecievedPacket.Words.Count >= 2) {
sender.SendQueued(new Packet(false, false, sender.AcquireSequenceNumber, new List<string>() {
"login.hashed",
GeneratePasswordHash(HashToByteArray(cpRecievedPacket.Words[1]), Password)
}));
}
else if (cpRequestPacket.Words.Count >= 2) {
IsLoggedIn = true;
if (Login != null) {
this.Login(this);
}
}
}
示例2: m_connection_ConnectionReady
private void m_connection_ConnectionReady(FrostbiteConnection sender) {
// Sleep the thread so the server has enough time to setup the listener.
// This is generally only problematic when connecting to local layers.
Thread.Sleep(50);
sender.SendQueued(new Packet(false, false, sender.AcquireSequenceNumber, "version"));
}