FIX 4.0 Demo 1.0
Loading...
Searching...
No Matches
fix40::EstablishedState Class Reference

会话已建立状态 More...

Inheritance diagram for fix40::EstablishedState:
Inheritance graph
Collaboration diagram for fix40::EstablishedState:
Collaboration graph

Public Member Functions

 EstablishedState ()
 
void onMessageReceived (Session &context, const FixMessage &msg) override
 处理收到的消息
 
void onTimerCheck (Session &context) override
 处理定时器检查事件
 
void onSessionStart (Session &context) override
 处理会话启动事件
 
void onLogoutRequest (Session &context, const std::string &reason) override
 处理登出请求
 
const char * getStateName () const override
 获取状态名称
 
- Public Member Functions inherited from fix40::IStateHandler
virtual ~IStateHandler ()=default
 

Detailed Description

会话已建立状态

正常工作状态,处理心跳、TestRequest 和业务消息。

Constructor & Destructor Documentation

◆ EstablishedState()

fix40::EstablishedState::EstablishedState ( )

Member Function Documentation

◆ getStateName()

const char * fix40::EstablishedState::getStateName ( ) const
inlineoverridevirtual

获取状态名称

Returns
const char* 状态名称字符串

Implements fix40::IStateHandler.

◆ onLogoutRequest()

void fix40::EstablishedState::onLogoutRequest ( Session context,
const std::string &  reason 
)
overridevirtual

处理登出请求

Parameters
context会话上下文
reason登出原因

Implements fix40::IStateHandler.

Here is the call graph for this function:

◆ onMessageReceived()

void fix40::EstablishedState::onMessageReceived ( Session context,
const FixMessage msg 
)
overridevirtual

处理收到的消息

Parameters
context会话上下文
msg收到的 FIX 消息

Implements fix40::IStateHandler.

Here is the call graph for this function:

◆ onSessionStart()

void fix40::EstablishedState::onSessionStart ( Session context)
inlineoverridevirtual

处理会话启动事件

Parameters
context会话上下文

Implements fix40::IStateHandler.

◆ onTimerCheck()

void fix40::EstablishedState::onTimerCheck ( Session context)
overridevirtual

处理定时器检查事件

Parameters
context会话上下文

用于心跳发送、超时检测等周期性任务。

Implements fix40::IStateHandler.

Here is the call graph for this function:

The documentation for this class was generated from the following file: