diff options
author | Liong Sauw Ming <ming@teluu.com> | 2010-02-04 18:29:16 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2010-02-04 18:29:16 +0000 |
commit | b813b2c567747c86ebe2c3de24ed6af26119ccf2 (patch) | |
tree | 7e58a2a2ea0b3a03988c1167f1caab4608bd12cf /pjlib-util/include/pjlib-util/errno.h | |
parent | 5236d4a9fdd5bb3a4e09eb3910e4cd4930e113aa (diff) |
Implemented ticket #1018: Simple HTTP client implementation
* pjlib-util:
* implement http_client
* pjlib-util-test:
* unit test for http_client
* pjsip-apps/samples:
* sample http client implementation
* build:
* added http_client support on VS6, VS2005, MMP, and Makefile
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3087 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib-util/include/pjlib-util/errno.h')
-rw-r--r-- | pjlib-util/include/pjlib-util/errno.h | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/pjlib-util/include/pjlib-util/errno.h b/pjlib-util/include/pjlib-util/errno.h index 26786a4c..5fa3d8fe 100644 --- a/pjlib-util/include/pjlib-util/errno.h +++ b/pjlib-util/include/pjlib-util/errno.h @@ -357,8 +357,34 @@ //#define PJ_STATUS_FROM_STUN_CODE(code) (PJLIB_UTIL_ERRNO_START+code) - - +/************************************************************ + * HTTP Client ERROR + ***********************************************************/ +/** + * @hideinitializer + * Invalid URL format + */ +#define PJLIB_UTIL_EHTTPINURL (PJLIB_UTIL_ERRNO_START+151)/* 320151 */ +/** + * @hideinitializer + * Invalid port number + */ +#define PJLIB_UTIL_EHTTPINPORT (PJLIB_UTIL_ERRNO_START+152)/* 320152 */ +/** + * @hideinitializer + * Incomplete headers received + */ +#define PJLIB_UTIL_EHTTPINCHDR (PJLIB_UTIL_ERRNO_START+153)/* 320153 */ +/** + * @hideinitializer + * Insufficient buffer + */ +#define PJLIB_UTIL_EHTTPINSBUF (PJLIB_UTIL_ERRNO_START+154)/* 320154 */ +/** + * @hideinitializer + * Connection lost + */ +#define PJLIB_UTIL_EHTTPLOST (PJLIB_UTIL_ERRNO_START+155)/* 320155 */ /** * @} |