tuxedo 服务程序 引用的DLL为libwscdnet

tuxedo 服务程序 引用的DLL为libwscdnet
#include<stdio.h>
#include"atmi.h"                /*TUXEDO HeaderFile*/
main(int argc, char *argv[])
{
         char *buf;
         long sendlen,rcvlen;
         int ret;
         if(tpinit(TPINIT*)NULL==-1){
         ......
         }
         sendlen = strlen(argv[1]);
         if (   (buf = (char* )tpalloc("STRING",NULL,sendlen+1) ) == NULL   ){
         ......
         }
         (void)strcpy(buf,argv[1]);
         ret = tpcall("TOUPPER",(char*)buf,0,(char**)&buf,&rcvlen,(long)0);
         if(ret == -1){
         ......
         }
         (void)fprint(stdout,"Retruned string is:%\n",buf);
         tpfree(buf);
         tpterm();
}

服务程序的入口参数 TPSVCINFO
服务程序返回结果--- tpreturn ()

你可能感兴趣的:(tuxedo 服务程序 引用的DLL为libwscdnet)