wap_push_pap_mime.h
资源名称:gateway-1.2.1 [点击查看]
上传用户:gzpyjq
上传日期:2013-01-31
资源大小:1852k
文件大小:1k
源码类别:
手机WAP编程
开发平台:
WINDOWS
- /*
- * wap_push_pap_mime.h: Header for a (gateway oriented) mime parser for pap
- * module. This parser conforms proxy rules set in Push Message, chapter 7.
- * (Headers are passed as they are)
- *
- * By Aarno Syv鋘en for Wapit Ltd
- */
- #ifndef WAP_PUSH_PAP_MIME_H
- #define WAP_PUSH_PAP_MIME_H
- #include "gwlib/gwlib.h"
- /*
- * Implementation of the external function, PAP uses MIME type multipart/
- * related to communicate a push message and related control information from
- * pi to ppg. Mime_parse separates parts of message and in addition returns
- * MIME-part-headers of the content entity. Preamble and epilogue of are dis-
- * carded from control messages, but not from a multipart content entity.
- * Multipart/related content type is defined in rfc 2046, chapters 5.1, 5.1.1,
- * and 5.1.7. Grammar is capitulated in rfc 2046 appendix A and in rfc 822,
- * appendix D. Functions called by mime_parse remove parsed parts from the mime
- * content.
- * Input: pointer to mime boundary and mime content
- * Output: in all cases, pointer to pap control document and push data. If
- * there is a capabilities document, pointer to this is returned, too. If there
- * is none, pointer to NULL instead.
- * In addition, return 1 if parsing was succesfull, 0 otherwise.
- */
- int mime_parse(Octstr *boundary, Octstr *mime_content, Octstr **pap_content,
- Octstr **push_data, List **content_headers,
- Octstr **rdf_content);
- #endif