#ifndef LIBTRADING_OMX_MOLDUDP_MESSAGE_H
#define LIBTRADING_OMX_MOLDUDP_MESSAGE_H

#include "libtrading/types.h"

struct omx_moldudp_header {
	char			Session[10];
	le32			SequenceNumber;
	le16			MessageCount;
} packed;

struct omx_moldudp_message {
	le16			MessageLength;
} packed;

struct omx_moldudp_request {
	char			Session[10];
	le32			SequenceNumber;
	le16			RequestedMessageCount;
} packed;

static inline struct omx_moldudp_message *omx_moldudp_payload(struct omx_moldudp_header *msg)
{
	return (void *) msg + sizeof(struct omx_moldudp_header);
}

static inline void *omx_moldudp_message_payload(struct omx_moldudp_message *msg)
{
	return (void *) msg + sizeof(struct omx_moldudp_message);
}

#endif

Add NASDAQ OMX MoldUDP 1.02a
Add NASDAQ OMX MoldUDP 1.02a

The protocol version is not mentioned in the implementation name because
last change was made in 2006.

Reviewed-by: Ville Aine <011d7a94c7f99119e473bfaf4cedd17c6b1552f1@iki.fi>
Signed-off-by: Jussi Virtanen <2a7e40f91a3be32dfb7e35af6e476a252ebdb4f3@gmail.com>
