Hi
I'm asked to develop an application for a stock exchange company using MMTP (Market Message Transfer Protocol) to retrieve data from the DIFF (Diffusion server) and pass orders to the trading engine.
MMTP is a proprietary protocol which comes with a C API which enables receiving and sending messages (including sample sender and receiver programs). There's also a Java API developed by former engineer in the company.
The problem is that with both C API and Java API, everything works well for the receiver but some received data is unreadable and displays bizarre characters. I tried out different types of encodings but none of them worked
But when I tried a small proprietary turning on Windows for receiving data from the Diffusion servers, it has displayed data correctly. (The diffusion server and my workstation are turning Linux)
He is a sample of the unreadable data (using utf-8 encoding):
SUCCESS : PacOut pipe opened !
Success to send a CONX-REQ to the PacOut !
Connection Request Accepted !
Sending a START-REQ to the PacOut !
Waiting for a START-ACK from the PacOut !
Reading the START-ACK !
START-REQ accepted !
��
��
��
��
��
��
��
Thanx a lot for helping !!!
I'm asked to develop an application for a stock exchange company using MMTP (Market Message Transfer Protocol) to retrieve data from the DIFF (Diffusion server) and pass orders to the trading engine.
MMTP is a proprietary protocol which comes with a C API which enables receiving and sending messages (including sample sender and receiver programs). There's also a Java API developed by former engineer in the company.
The problem is that with both C API and Java API, everything works well for the receiver but some received data is unreadable and displays bizarre characters. I tried out different types of encodings but none of them worked
But when I tried a small proprietary turning on Windows for receiving data from the Diffusion servers, it has displayed data correctly. (The diffusion server and my workstation are turning Linux)
He is a sample of the unreadable data (using utf-8 encoding):
SUCCESS : PacOut pipe opened !
Success to send a CONX-REQ to the PacOut !
Connection Request Accepted !
Sending a START-REQ to the PacOut !
Waiting for a START-ACK from the PacOut !
Reading the START-ACK !
START-REQ accepted !
��
��
��
��
��
��
��
Thanx a lot for helping !!!
