gauthd
 
Loading...
Searching...
No Matches
D:/pwsrc2.0/docs/gauthd/matrixpasswd2.hpp
Go to the documentation of this file.
1
9
10#ifndef __GNET_MATRIXPASSWD2_HPP
11#define __GNET_MATRIXPASSWD2_HPP
12
13#include "rpcdefs.h"
14#include "callid.hxx"
15#include "state.hxx"
16#include "matrixpasswdarg"
17#include "matrixpasswd2res"
18#include "gmysqlclient.hpp"
19
20namespace GNET
21{
22
33class MatrixPasswd2 : public ProxyRpc
34{
35#define RPC_BASECLASS ProxyRpc
36 #include "matrixpasswd2" // Генерируемый RPC-код
37#undef RPC_BASECLASS
38
39public:
48 bool Delivery(Manager::Session::ID proxy_sid, const OctetsStream& osArg)
49 {
50 return false;
51 // Пример закомментированной реализации:
52 // MatrixPasswdArg arg;
53 // osArg >> arg;
54 // if( GAuthClient::GetInstance()->SendProtocol( *this )
55 // {
56 // return true;
57 // }
58 // else
59 // {
60 // SetResult(MatrixPasswd2Res(ERR_DELIVER_SEND));
61 // SendToSponsor();
62 // return false;
63 // }
64 }
65
74 void PostProcess(Manager::Session::ID proxy_sid, const OctetsStream& osArg, const OctetsStream& osRes)
75 {
76 // Пример закомментированной реализации:
77 // MatrixPasswdArg arg;
78 // osArg >> arg;
79 // MatrixPasswd2Res res;
80 // osRes >> res;
81 // SetResult( &res ); // Обновление результатов
82 }
83
90 void OnTimeout()
91 {
92 // Клиентская логика обработки таймаута
93 }
94};
95
96} // namespace GNET
97#endif
Прокси-класс для обработки RPC-запросов проверки матричного пароля @inherits ProxyRpc.
bool Delivery(Manager::Session::ID proxy_sid, const OctetsStream &osArg)
Метод доставки RPC-запроса
void PostProcess(Manager::Session::ID proxy_sid, const OctetsStream &osArg, const OctetsStream &osRes)
Постобработка результатов RPC-запроса
void OnTimeout()
Обработчик таймаута соединения
MySQL клиент для работы с базой данных игрового сервера
Основное пространство имен для сетевых компонентов системы.