19 #define LMD__SUCCESS 0
20 #define LMD__FAILURE 1
21 #define LMD__CLOSE_ERR 3
22 #define GETLMD__NOFILE 2
23 #define GETLMD__NOLMDFILE 4
24 #define GETLMD__EOFILE 5
25 #define GETLMD__NOMORE 6
26 #define GETLMD__NOBUFFER 7
27 #define GETLMD__TOOBIG 8
28 #define GETLMD__OUTOF_RANGE 9
29 #define GETLMD__SIZE_ERROR 10
30 #define LMD__TIMEOUT 50
31 #define PUTLMD__FILE_EXIST 101
32 #define PUTLMD__TOOBIG 102
33 #define PUTLMD__OPEN_ERR 103
34 #define PUTLMD__EXCEED 104
35 #define PORT__TRANS 6000
36 #define PORT__STREAM 6002
void fLmdVerbose(sLmdControl *, uint32_t)
void fLmdPrintFileHeader(uint32_t iVerbose, sMbsFileHeader *pMbsFileHeader)
uint32_t fLmdGetMbsEvent(sLmdControl *pLmdControl, sMbsHeader **event)
uint32_t fLmdGetElement(sLmdControl *pLmdControl, uint32_t iEvent, sMbsHeader **event)
uint32_t fLmdInitMbs(sLmdControl *pLmdControl, char *Nodename, uint32_t iMaxBytes, uint32_t iBuffers, uint32_t iStreams, uint32_t iPort, uint32_t iTimeout)
uint32_t fLmdPutClose(sLmdControl *pLmdControl)
uint32_t fLmdGetClose(sLmdControl *pLmdControl)
void fLmdSwap4(uint32_t *array, uint32_t items)
uint64_t fLmdGetBytesWritten(sLmdControl *pLmdControl)
void fLmdSetWrittenEndian(sLmdControl *pLmdControl, uint32_t iE)
uint32_t fLmdGetBuffer(sLmdControl *pLmdControl, sMbsHeader *pMbsHeader, uint32_t iBytes, uint32_t *iElements, uint32_t *iBytesUsed)
uint32_t fLmdGetWrittenEndian(sLmdControl *pLmdControl)
void fLmdPrintEvent(uint32_t iVerbose, sMbsEventHeader *pMbsEventHeader)
uint32_t fLmdGetOpen(sLmdControl *pLmdControl, char *Filename, sMbsFileHeader *pBuffHead, uint32_t iBytes, uint32_t iUseOffset)
void fLmdPrintHeader(uint32_t iVerbose, sMbsHeader *pMbsHeader)
int32_t fLmdReadBuffer(sLmdControl *pLmdControl, char *buffer, uint32_t bytes)
uint32_t fLmdCloseMbs(sLmdControl *pLmdControl)
void fLmdPrintControl(uint32_t iVerbose, sLmdControl *pLmdControl)
sLmdControl * fLmdAllocateControl()
uint32_t fLmdPutElement(sLmdControl *pLmdControl, sMbsHeader *pHeader)
uint32_t fLmdGetMbsBuffer(sLmdControl *pLmdControl, sMbsBufferHeader *pBuffer, uint32_t iBytes, uint32_t *iElements, uint32_t *iBytesUsed)
uint32_t fLmdPutOpen(sLmdControl *pLmdControl, char *Filename, sMbsFileHeader *pBuffHead, uint32_t iBytes, uint32_t iOver, uint32_t iUseOffset, uint32_t iLargeFile)
uint32_t fLmdGetSwap(sLmdControl *pLmdControl)
sMbsFileHeader * pMbsFileHeader
uint32_t fLmdConnectMbs(sLmdControl *pLmdControl, char *Nodename, uint32_t iPort, uint32_t *iBufferBytes)
uint32_t fLmdPutBuffer(sLmdControl *pLmdControl, sMbsHeader *pHeader, uint32_t Items)
void fLmdPrintBufferHeader(uint32_t iVerbose, sMbsBufferHeader *pMbsBufferHeader)
void fLmdSwap8(uint64_t *array, uint32_t items)