blob: ddb138a0d03f9aa5414ebe48531f452e45df9c3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
using System;
using System.Text;
using KKSG;
using XUtliPoolLib;
namespace XMainClient
{
internal class Process_RpcC2A_AudioAuthKey
{
public static void OnReply(AudioAuthKeyArg oArg, AudioAuthKeyRes oRes)
{
bool flag = oRes == null;
if (!flag)
{
bool flag2 = oRes.error == ErrorCode.ERR_SUCCESS;
if (flag2)
{
XChatDocument.m_ApolloInited = true;
XChatDocument.m_ApolloKey = Encoding.Default.GetBytes(oRes.szAuthKey);
XChatDocument.m_ApolloIPtable[0] = (int)oRes.dwMainSvrUrl1;
XChatDocument.m_ApolloIPtable[1] = (int)oRes.dwMainSvrUrl2;
XChatDocument.m_ApolloIPtable[2] = (int)oRes.dwSlaveSvrUrl1;
XChatDocument.m_ApolloIPtable[3] = (int)oRes.dwSlaveSvrUrl2;
XSingleton<XChatApolloMgr>.singleton.InitApolloEngine();
}
}
}
public static void OnTimeout(AudioAuthKeyArg oArg)
{
}
}
}
|