A Session is defined as a bi-directional stream of ordered messages between two parties within a continuous sequence number series. It is represented by the OnixS::ICE::BOE::Session class.
To create a session, use OnixS::ICE::BOE::Session class with the corresponding constructors:
BUS and BGW Session Types
According to ICE Binary Order and Utility Service API Technical Specification, client connectivity uses two gateway session types:
- Binary Utility Service Gateway (BUS) session: used to request connectivity parameters for order gateways, including IP, port, and session token. In the Handler API this is represented by OnixS::ICE::BOE::BusSession.
- Binary Order Gateway (BGW) session: used to log on to the order gateway and exchange order-related messages. In the Handler API this is represented by OnixS::ICE::BOE::BgwSession.
- Note
- The BGW session token is valid for the current exchange day. Duplicate logon attempts for the same Gateway ID to the same gateway are rejected.
Example
BusSession bussession(busSettings, &busSessionListener);
BgwSession session(bgwSettings, &bgwSessionListener);
- See also
- Getting Started Sample