summaryrefslogtreecommitdiffstats
path: root/util/include
diff options
context:
space:
mode:
authorGravatar samisa2011-08-29 10:54:57 +0000
committerGravatar samisa2011-08-29 10:54:57 +0000
commitc45a19e8b2b2dab5dd73f74ba2bfb9f91fda2742 (patch)
tree4ea1a48ffc4c74e0a68aacdd8cafe17ef9f93232 /util/include
parentf14321f87f76c183693e0ed3f72adbd29d38c7a3 (diff)
downloadaxis2c-c45a19e8b2b2dab5dd73f74ba2bfb9f91fda2742.tar.gz
axis2c-c45a19e8b2b2dab5dd73f74ba2bfb9f91fda2742.tar.bz2
fixing the peek to support SSL by applying patch given in AXIS2C-1556.
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@1162726 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'util/include')
-rw-r--r--util/include/axutil_stream.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/util/include/axutil_stream.h b/util/include/axutil_stream.h
index 729f1e3..a506811 100644
--- a/util/include/axutil_stream.h
+++ b/util/include/axutil_stream.h
@@ -76,6 +76,14 @@ extern "C"
const axutil_env_t * env,
int count);
+ typedef int(
+ AXIS2_CALL
+ * AXUTIL_STREAM_PEEK)(
+ axutil_stream_t * stream,
+ const axutil_env_t * env,
+ void *buffer,
+ size_t count);
+
struct axutil_stream
{
axutil_stream_type_t stream_type;
@@ -130,6 +138,22 @@ extern "C"
axutil_stream_t * stream,
const axutil_env_t * env,
int count);
+
+
+ /**
+ * peeks into stream
+ * @param buffer buffer into which the content is to be read
+ * @param count size of the buffer
+ * @return no: of bytes read
+ */
+ int(
+ AXIS2_CALL
+ * peek)(
+ axutil_stream_t * stream,
+ const axutil_env_t * env,
+ void *buffer,
+ size_t count);
+
};
/**
@@ -183,6 +207,20 @@ extern "C"
const axutil_env_t * env,
int count);
+ /**
+ * peeks into stream
+ * @param buffer buffer into which the content is to be read
+ * @param count size of the buffer
+ * @return no: of bytes read
+ */
+ AXIS2_EXTERN int AXIS2_CALL
+ axutil_stream_peek(
+ axutil_stream_t * stream,
+ const axutil_env_t * env,
+ void *buffer,
+ int count);
+
+
/**
* Returns the length of the stream (applicable only to basic stream)
* @return Length of the buffer if its type is basic, else -1
@@ -285,6 +323,13 @@ extern "C"
const axutil_env_t * env,
AXUTIL_STREAM_SKIP func);
+ AXIS2_EXTERN axis2_status_t AXIS2_CALL
+ axutil_stream_set_peek(
+ axutil_stream_t * stream,
+ const axutil_env_t * env,
+ AXUTIL_STREAM_PEEK func);
+
+
/** @} */
#ifdef __cplusplus