penoynet
2016-07-09 21:10:35 0 举报
Penoynet是一个在线支付平台,它提供了一种安全、快捷的支付方式。用户可以通过Penoynet轻松地完成各种交易,包括购物、转账和支付账单等。Penoynet采用了最先进的加密技术,确保用户的交易信息始终安全可靠。此外,Penoynet还提供了多种优惠活动和奖励计划,让用户在享受便捷支付的同时,还能获得额外的实惠。总之,Penoynet是一个值得信赖的在线支付平台,它为用户提供了一站式的支付解决方案。
作者其他创作
大纲/内容
TCPSession//数据包搬运工
CNiceNet
INiceNetServer * FindServer(unsigned int serverinstanceid );unsigned int GetNiceNetMark() {return m_NiceNetMark; }void SetNiceNetMark( unsigned int mark ) { m_NiceNetMark=mark; }//是否是正确的ip地址bool is_right_ipstr( string strip );void \tLogoutAllCounters();void \tOnTime_1000Millisecond(unsigned int cur_time);void \tOnTime_checklisten(unsigned int cur_time);void \tSendMsg_CounterStateInfo();void \tNoticeDelServer(INiceNetServer * pserver);void \tPerformDelServer(INiceNetServer * pserver);void \tOnTime_debug_serverthread();
1...N
1..N
static void MsgFun_client_onrecv(TCPClientSessionPtr psession) {\t\t\textern bool g_is_random_ltmsg;\t\t\textern unsigned int g_RunMsgEvent;\t\t\tif( g_is_random_ltmsg && (0==g_RunMsgEvent%100) )\t\t\t{\t\t\t\tNETLOG__ERROR(\"[MsgFun_client_onrecv] \"g_RunMsgEvent\";\"Run(1); }
INiceNet
TCPClient//PNGB::m_pTCPClient
TCPClientSession
std::string\t\t\t\t\tm_hostname;std::string\t\t\t\t\tm_servicename;connection_handler_type\tm_connection_handler;\t// invoke it during connectionboost::asio::io_service&\t m_io_service;tcp::resolver\t\t m_resolver;boost::asio::strand&\t\t m_strand;CONNECTION_STATE\t\t m_connection_state;
INiceNetServer
//抽象类- SendMsg()- close()- GetID()GetRemoteIp()GetLocalIp()GetMaxCounterCount()GetSeverCurConnectCount()get_conn_count()SetXAttrib()SetConData()
TCPServer//工头
TCPServerSession
- boost::shared_ptr m_pAutoParent //我在哪个TCPServer下- unsigned int m_instance_id; ////它的所属于的server的ID- const TNewServerParam &m_param; //这里面有IAppServer
IAppServer
1
template void TCPSession::close(string strwhy) { //Boost_Scoped_Lock sendbuf_lock(m_sendbuf_mutex); boost::system::error_code ec; if( !m_socket.is_open() ) return;\t\t\ttry\t\t\t{\t\t\t\tif( IsXAttrib(socketmk_log) || IsXAttrib(socketmk_logic_iniserver) )\t\t\t\t{\t\t\t\t\tNETLOG__SYSINFO(\"[close] strwhy=\
string m_strName;
0 条评论
下一页
为你推荐
查看更多