[SCM] Samba Shared Repository - branch master updated
Kai Blin
kai at samba.org
Thu Jan 28 03:29:33 MST 2010
The branch, master has been updated
via 88099bc... tsocket: Fix the description of tstream_writev_queue_send/recv
via 9184f52... tsocket: Fix description for tstream_readv_pdu_queue_send/recv
from 2fdff7f... s4-ldbtest: fixed python import
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 88099bcc93fabebe3d4548f8a5aa26b585886a1c
Author: Kai Blin <kai at samba.org>
Date: Thu Jan 28 11:16:24 2010 +0100
tsocket: Fix the description of tstream_writev_queue_send/recv
commit 9184f524f0e5fe828b723200182969e0e3e8685d
Author: Kai Blin <kai at samba.org>
Date: Thu Jan 28 11:11:33 2010 +0100
tsocket: Fix description for tstream_readv_pdu_queue_send/recv
-----------------------------------------------------------------------
Summary of changes:
lib/tsocket/tsocket.h | 25 ++++++++++++-------------
1 files changed, 12 insertions(+), 13 deletions(-)
Changeset truncated at 500 lines:
diff --git a/lib/tsocket/tsocket.h b/lib/tsocket/tsocket.h
index b9b9dc3..84dc668 100644
--- a/lib/tsocket/tsocket.h
+++ b/lib/tsocket/tsocket.h
@@ -975,11 +975,10 @@ struct tevent_req *tstream_readv_pdu_send(TALLOC_CTX *mem_ctx,
int tstream_readv_pdu_recv(struct tevent_req *req, int *perrno);
/**
- * @brief Queue a dgram blob for sending through the socket.
+ * @brief Queue a read request for a PDU on the socket.
*
- * This function queues a blob for sending to destination through an existing
- * dgram socket. The async callback is triggered when the whole blob is
- * delivered to the underlying system socket.
+ * This function queues a read request for a PDU on a stream socket. The async
+ * callback is triggered when a full PDU has been read from the socket.
*
* The caller needs to make sure that all non-scalar input parameters hang
* arround for the whole lifetime of the request.
@@ -1008,23 +1007,23 @@ struct tevent_req *tstream_readv_pdu_queue_send(TALLOC_CTX *mem_ctx,
void *next_vector_private);
/**
- * @brief Receive the result of the sent dgram blob.
+ * @brief Receive the PDU blob read from the stream.
*
* @param[in] req The tevent request from tstream_readv_pdu_queue_send().
*
* @param[out] perrno The error set to the actual errno.
*
- * @return The length of the datagram (0 is never returned!), -1 on
- * error with perrno set to the actual errno.
+ * @return The number of bytes read on success, -1 on error with
+ * perrno set to the actual errno.
*/
int tstream_readv_pdu_queue_recv(struct tevent_req *req, int *perrno);
/**
- * @brief Queue a dgram blob for sending through the socket
+ * @brief Queue an iovector for sending through the socket
*
- * This function queues a blob for sending to destination through an existing
- * dgram socket. The async callback is triggered when the whole blob is
- * delivered to the underlying system socket.
+ * This function queues an iovector for sending to destination through an
+ * existing stream socket. The async callback is triggered when the whole
+ * vectror has been delivered to the underlying system socket.
*
* The caller needs to make sure that all non-scalar input parameters hang
* arround for the whole lifetime of the request.
@@ -1051,13 +1050,13 @@ struct tevent_req *tstream_writev_queue_send(TALLOC_CTX *mem_ctx,
size_t count);
/**
- * @brief Receive the result of the sent dgram blob.
+ * @brief Receive the result of the sent iovector.
*
* @param[in] req The tevent request from tstream_writev_queue_send().
*
* @param[out] perrno The error set to the actual errno.
*
- * @return The length of the datagram (0 is never returned!), -1 on
+ * @return The length of the iovector (0 is never returned!), -1 on
* error with perrno set to the actual errno.
*/
int tstream_writev_queue_recv(struct tevent_req *req, int *perrno);
--
Samba Shared Repository
More information about the samba-cvs
mailing list