OnixS C++ CME MDP Conflated UDP Handler  1.1.2
API documentation
ChannelFeedListener.h
Go to the documentation of this file.
1 // Copyright Onix Solutions Limited [OnixS]. All rights reserved.
2 //
3 // This software owned by Onix Solutions Limited [OnixS] and is
4 // protected by copyright law and international copyright treaties.
5 //
6 // Access to and use of the software is governed by the terms of the applicable
7 // OnixS Software Services Agreement (the Agreement) and Customer end user license
8 // agreements granting a non-assignable, non-transferable and non-exclusive license
9 // to use the software for it's own data processing purposes under the terms defined
10 // in the Agreement.
11 //
12 // Except as otherwise granted within the terms of the Agreement, copying or
13 // reproduction of any part of this source code or associated reference material
14 // to any other location for further reproduction or redistribution, and any
15 // amendments to this copyright notice, are expressly prohibited.
16 //
17 // Any reproduction or redistribution for sale or hiring of the Software not in
18 // accordance with the terms of the Agreement is a violation of copyright law.
19 //
20 
21 #pragma once
22 
24 
26 
28 (
29  Handler
30 );
31 
33 (
34  NetFeed
35 );
36 
37 /// A listener for the feed-related events
38 /// in bounds of a single Handler instance.
39 ///
40 /// Members of the given listener are invoked
41 /// by the Handler when it manipulates feeds to
42 /// reflects various aspects of feed behavior.
45 {
46  /// Invoked when Handler establishes connection
47  /// to a feed identified by provided properties.
48  virtual
49  void
51  Handler&,
52  const NetFeed&)
53  {
54  }
55 
56  /// Invoked when Handler drops connection to
57  /// a feed identified by provided properties.
58  virtual
59  void
61  Handler&,
62  const NetFeed&)
63  {
64  }
65 
66  /// Invoked when packet is received on given feed.
67  ///
68  /// Given member is invoked for all data received over
69  /// the feed including duplicated and out of order one.
70  /// Actual processing of received data may be done far
71  /// later or not happen at all if data is outdated or
72  /// duplicates already processed one. Therefore, packet
73  /// passed through given member may not appear through
74  /// other listeners like MarketDataListener.
75  virtual
76  void
78  Handler&,
79  const PacketArgs&)
80  {
81  }
82 };
83 
Base attributes of market data feed.
Definition: Feed.h:60
#define ONIXS_CONFLATEDUDP_LTWT_CLASS_DECL(name)
Definition: Bootstrap.h:107
virtual void onFeedDisconnected(Handler &, const NetFeed &)
#define ONIXS_CONFLATEDUDP_EXPORTED_CLASS_DECL(typeName)
Definition: Bootstrap.h:47
#define ONIXS_CONFLATEDUDP_EXPORTED_STRUCT
Definition: Bootstrap.h:59
#define ONIXS_CONFLATEDUDP_NAMESPACE_END
Definition: Bootstrap.h:157
virtual void onFeedPacket(Handler &, const PacketArgs &)
virtual void onFeedConnected(Handler &, const NetFeed &)
#define ONIXS_CONFLATEDUDP_NAMESPACE_BEGIN
Definition: Bootstrap.h:153