OmniMessaging ZLE Adapter Programmer's Guide 6.2
OmniMessaging ZLE Mail Adapter Installation Guide
Opsol Confidential and Proprietary 12
OMNI_attachment attachments[10];
unsigned short attach_count;
char message_body[25000];
OMNI_headers headers;
char org_msg_filename[32];
unsigned short get_only_org_msg;
} OMNI_getTelMessage;
typedef struct OMNI_getOSSMessage_tag
{ unsigned short request_type;
unsigned short returnCode;
char orig_address[132];
char password[17];
char mailbox_name[66];
char message_id[33];
unsigned long uid;
char attach_dir[225];
OMNI_attachment attachments[10];
unsigned short attach_count;
} OMNI_getOSSMessage;
typedef struct OMNI_delMessage_tag
{ unsigned short request_type;
unsigned short returnCode;
char orig_address[132];
char password[17];
char mailbox_name[248];
char message_id[33];
unsigned long uid;
} OMNI_delMessage;
3.12 Sample Test client - ZLECLT.C
This file is also provided along with the PAK file ZINSTALL.
The code below describes how send the message using the OMNI_sendMessage IPC.
The file provided with the PAK file has sample code for all other remaining IPCs.
#include <stdio.h> nolist
#include <string.h> nolist
#include <stdlib.h> nolist
#include <cextdecs.h(serverclass_send_, \
serverclass_send_info_)> nolist
#include <adapt.h>
#define MAX_SVRCLASS_NAME_LEN 32
#define MAXPROCESSNAME_LEN 6
#define MAXREPLYLEN 30*1024
int
main(void)
{
char pmonProcessName[MAXPROCESSNAME_LEN+1];
char pSvrClassName[MAX_SVRCLASS_NAME_LEN+1];
short nPmonProcessNameLen, nSvrClassNameLen;
short nReqBufSize=0, nMaxRepLen=MAXREPLYLEN;
short nError, nActualReplyLength, nError2;