📄 http_get_config_state.hxx
字号:
//====================================================================// // Copyright (C) 2006-2008, Frank.Ning// // Filename: http_get_config_state.hxx// Author: Frank.Ning <zegong.ning@dinglicom.com>// Description: // // $Id:$// //====================================================================#ifndef __HTTP_GET_CONFIG_STATE_HXX__#define __HTTP_GET_CONFIG_STATE_HXX__static const char* const http_get_config_state_hxx_version = "$Id:$";#include "status.hxx"struct http_get_config_state : public fsm::state<http_get_config_state, FetionRegisterStateList, bool>{ bool on_process( shared_ptr<http_request<http_hdr> > request ) { #if 0 ua_callctl& ua = ua_callctl::instance( ); if( ua.has_server_config( ) ) { switch_to<http_ssi_protal_state>( ); return true ; } ua.set_last_http_request( request ); ua.get_output_channel( )->add( shared_ptr<http_event>( request ) ); #endif return true ; } bool on_process( shared_ptr<http_status<http_hdr> > status ) { ua_callctl& ua = ua_callctl::instance( ); ua.set_last_http_status( status ); if( ua.check_server_config( status ) ) { switch_to<http_ssi_protal_state>( ); shared_ptr<http_request<http_hdr> > ssi_portal = ua.build_ssi_portal_request( ) ; ua.set_last_http_request( ssi_portal ); ua.get_output_channel( )->add( shared_ptr<http_event>( ssi_portal ) ); } else { ua.get_output_channel( )->add( shared_ptr<http_event>( ua.get_last_http_request( ) ) , 15*1000 ); } return true ; }};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -