欢迎来到天天文库
浏览记录
ID:39464783
大小:181.00 KB
页数:9页
时间:2019-07-03
《atmi常用函数列表》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、内容简介:主要介绍atmi函数族中消息,队列,事务,会话相关函数。各族函数不应在同一个层次上嵌套使用。参数都分别要显示指定,若没有,则指定为0或null.检查和确保参数有效,并且类型匹配。tperrno和tperrordetail()分别用获取错误码与详细错误信息。函数列表:ForaTaskRelatedto...UseThisCFunction...To...Buffermanagementtpalloc()Createamessagebuffertprealloc()Resizeamessagebuffertptypes()Ge
2、tamessagetypeandsubtypetpfree()FreeamessagebufferClientmembershiptpchkauth()Checkwhetherauthenticationisrequiredtpinit()Joinanapplicationtpterm()LeaveanapplicationMultipleapplicationcontextmanagementtpgetctxt(3c)Retrieveanidentifierforthecurrentthread’scontexttpsetctxt
3、(3c)Setthecurrentthread’scontextinamulticontextedprocessServiceentryandreturntpsvrinit()Initializeaserver·tpsvrdone()Terminateaservertpsvrthrinit()Initializeanindividualserverthreadtpsvrthrdone()Terminationcodeforanindividualserverthreadtpreturn()Endaservicefunctiontpf
4、orward()ForwardarequestDynamicadvertisementtpadvertise()Advertiseaservicenametpunadvertise()UnadvertiseaservicenameMessageprioritytpgprio()Getthepriorityofthelastrequesttpsprio()SetthepriorityofthenextrequestRequest/responsecommunicationstpcall()Initiateasynchronousreq
5、uest/responsetoaservice·tpacall()Initiateanasynchronousrequesttpgetrply()Receiveanasynchronousresponsetpcancel()CancelanasynchronousrequestConversationalcommunicationtpconnect()Beginaconversationwithaservicetpdiscon()Abnormallyterminateaconversationtpsend()Sendamessage
6、inaconversationtprecv()ReceiveamessageinaconversationReliablequeuingtpenqueue(3c)Enqueueamessagetoamessagequeuetpdequeue(3c)DequeueamessagefromamessagequeueEvent-basedtpnotify()Sendanunsolicitedmessagetoaclientcommunicationstpbroadcast()Sendmessagestoseveralclientstpse
7、tunsol()Setunsolicitedmessagecall-backtpchkunsol()Checkthearrivalofunsolicitedmessagestppost()Postaneventmessagetpsubscribe()Subscribetoeventmessagestpunsubscribe()UnsubscribetoeventmessagesTransactionmanagementtpbegin()Beginatransactiontpcommit()Committhecurrenttransa
8、ctiontpabort()Rollbackthecurrenttransactiontpgetlev()Checkwhetherintransactionmodetpsuspend()Suspendthecurrenttransac
此文档下载收益归作者所有