Emulates incoming UDP messages.
More...
#include <B2BITS_CmeMdpMockPlayer.h>
|
static void | playPcap (std::string const &fileName, u32 playMsgsCount=0) |
| Replays pcap file. More...
|
|
static bool | pushUdpMessage (u32 ip, u16 port, char const *buffer, std::size_t bufSize) |
| Delivers given UDP message into Market Data Service. More...
|
|
Following parameters must be set for Market Data Service:
- MarketDataServiceOptions::recoverySocketOptions_::socketType_ = stMock
- MarketDataServiceOptions::.incrementalSocketOptions_::socketType_ = stMock
static void playPcap |
( |
std::string const & |
fileName, |
|
|
u32 |
playMsgsCount = 0 |
|
) |
| |
|
static |
- Parameters
-
fileName | Path to the PCAP file |
playMsgsCount | NUmber of messages to replay. 0 means all messages. |
static bool pushUdpMessage |
( |
u32 |
ip, |
|
|
u16 |
port, |
|
|
char const * |
buffer, |
|
|
std::size_t |
bufSize |
|
) |
| |
|
static |
- Parameters
-
ip | IPv4 address (in_addr.s_addr) |
port | UDP port |
buffer | Pointer to UDP message |
bufSize | Size of given UDP message |
- Returns
- true if message was delivered; false if connection was not opened by Market Data Service.