/* * Copyright Onix Solutions Limited [OnixS]. All rights reserved. * * This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law * and international copyright treaties. * * Access to and use of the software is governed by the terms of the applicable OnixS Software * Services Agreement (the Agreement) and Customer end user license agreements granting * a non-assignable, non-transferable and non-exclusive license to use the software * for it's own data processing purposes under the terms defined in the Agreement. * * Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part * of this source code or associated reference material to any other location for further reproduction * or redistribution, and any amendments to this copyright notice, are expressly prohibited. * * Any reproduction or redistribution for sale or hiring of the Software not in accordance with * the terms of the Agreement is a violation of copyright law. */ #pragma once #include namespace OnixS { namespace FIX { /// The network reactor type. struct ReactorType { enum Enum { /// The undefined reactor. Undefined = 0, /// The Solarflare TCPDirect reactor. TcpDirect = 1, /// The standard TCP reactor. TcpStandard = 2 }; }; /// The session's network stack reactor interface. class ONIXS_FIXENGINE_API ISessionReactor { public: /// The destructor. virtual ~ISessionReactor() ONIXS_FIXENGINE_DEFAULT; /// Processes events on a stack and performs the necessary handling. /// /// These events include transmit and receive events raised by the hardware, /// and also software events such as TCP and FIX protocol timers. virtual void dispatchEvents() = 0; /// \return A boolean value indicating whether a stack is quiescent. virtual bool isQuiescent() const = 0; /// \return The ID of the thread that created the stack. virtual Threading::ThreadId threadId() const = 0; /// \return The type of the stack. virtual ReactorType::Enum type() const = 0; }; } }