|
|
@ -427,17 +427,17 @@ struct GetPublicAgeListTrans : NetAuthTrans { |
|
|
|
void * m_param; |
|
|
|
void * m_param; |
|
|
|
|
|
|
|
|
|
|
|
// send
|
|
|
|
// send
|
|
|
|
wchar_t m_ageName[MAX_PATH]; |
|
|
|
plString m_ageName; |
|
|
|
|
|
|
|
|
|
|
|
// recv
|
|
|
|
// recv
|
|
|
|
ARRAY(NetAgeInfo) m_ages; |
|
|
|
ARRAY(NetAgeInfo) m_ages; |
|
|
|
|
|
|
|
|
|
|
|
GetPublicAgeListTrans ( |
|
|
|
GetPublicAgeListTrans ( |
|
|
|
const wchar_t ageName[], |
|
|
|
const plString& ageName, |
|
|
|
FNetCliAuthGetPublicAgeListCallback callback, |
|
|
|
FNetCliAuthGetPublicAgeListCallback callback, |
|
|
|
void * param |
|
|
|
void * param |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
bool Send (); |
|
|
|
bool Send (); |
|
|
|
void Post (); |
|
|
|
void Post (); |
|
|
|
bool Recv ( |
|
|
|
bool Recv ( |
|
|
@ -3218,14 +3218,14 @@ bool AccountChangePasswordRequestTrans::Recv ( |
|
|
|
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
//============================================================================
|
|
|
|
GetPublicAgeListTrans::GetPublicAgeListTrans ( |
|
|
|
GetPublicAgeListTrans::GetPublicAgeListTrans ( |
|
|
|
const wchar_t ageName[], |
|
|
|
const plString& ageName, |
|
|
|
FNetCliAuthGetPublicAgeListCallback callback, |
|
|
|
FNetCliAuthGetPublicAgeListCallback callback, |
|
|
|
void * param |
|
|
|
void * param |
|
|
|
) : NetAuthTrans(kGetPublicAgeListTrans) |
|
|
|
) : NetAuthTrans(kGetPublicAgeListTrans) |
|
|
|
|
|
|
|
, m_ageName(ageName) |
|
|
|
, m_callback(callback) |
|
|
|
, m_callback(callback) |
|
|
|
, m_param(param) |
|
|
|
, m_param(param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
StrCopy(m_ageName, ageName, arrsize(m_ageName)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
//============================================================================
|
|
|
@ -3233,10 +3233,12 @@ bool GetPublicAgeListTrans::Send () { |
|
|
|
if (!AcquireConn()) |
|
|
|
if (!AcquireConn()) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plStringBuffer<uint16_t> ageName = m_ageName.ToUtf16(); |
|
|
|
|
|
|
|
|
|
|
|
const uintptr_t msg[] = { |
|
|
|
const uintptr_t msg[] = { |
|
|
|
kCli2Auth_GetPublicAgeList, |
|
|
|
kCli2Auth_GetPublicAgeList, |
|
|
|
m_transId, |
|
|
|
m_transId, |
|
|
|
(uintptr_t) &m_ageName, |
|
|
|
(uintptr_t) ageName.GetData(), |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
m_conn->Send(msg, arrsize(msg)); |
|
|
|
m_conn->Send(msg, arrsize(msg)); |
|
|
@ -5414,7 +5416,7 @@ void NetCliAuthSetAgePublic ( |
|
|
|
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
//============================================================================
|
|
|
|
void NetCliAuthGetPublicAgeList ( |
|
|
|
void NetCliAuthGetPublicAgeList ( |
|
|
|
const wchar_t ageName[], |
|
|
|
const plString& ageName, |
|
|
|
FNetCliAuthGetPublicAgeListCallback callback, |
|
|
|
FNetCliAuthGetPublicAgeListCallback callback, |
|
|
|
void * param |
|
|
|
void * param |
|
|
|
) { |
|
|
|
) { |
|
|
|