|
| static pfun * | find (i32_protocolnum aprotocol) |
| | 查找一个已注册的协议条目。
|
| static const char * | name (i32_protocolnum aprotocol) |
| | 获取协议的显示名称。
|
| static void | print (const char *amsg, i32_protocolnum aprotocol) |
| | 打印协议信息到日志。
|
| static void | registers (int aprotocol, ENUM_ACTOR aenumactor, const protocol::fun_pack &apackfun, const protocol::fun_run &arunfun, const char *aname) |
| | 为一个actor类型注册一个协议ID。
|
| static void | push (std::shared_ptr< pack > &apack) |
| | 解码网络包并路由到匹配的actor分发器。
|
|
template<typename T> |
| static void | registry_actor (ENUM_ACTOR atype, const char *aname) |
|
template<typename T> |
| static void | registry_c2g (ENUM_ACTOR atype, int32_t aprotocolnum, const char *aname) |
|
template<typename T> |
| static void | registry_g2c (ENUM_ACTOR atype, int32_t aprotocolnum, const char *aname) |
|
template<typename T> |
| static void | registry_mass (int32_t aprotocolnum, const char *aname) |
协议处理和分发核心类。
管理协议处理函数的注册、查找和分发,提供协议消息的路由功能。 采用单例模式,通过静态方法访问协议注册表。