summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.h
diff options
context:
space:
mode:
authorsma <sma@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2012-08-10 14:01:17 +0000
committersma <sma@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2012-08-10 14:01:17 +0000
commit1c7f93a50ec5038a953063118ad4160f57aa1d0c (patch)
treec7ba4ecb80e8c6b31df78e61d57a651010898746 /TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.h
parent5343533e453cc697555b4b7d08e5dfd3cc312034 (diff)
downloadATCD-1c7f93a50ec5038a953063118ad4160f57aa1d0c.tar.gz
Fri Aug 10 14:00:00 UTC 2012 Simon Massey <sma at prismtech dot com> MIOP Fragmentation
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.h')
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.h b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.h
index 0378e1aac7c..0bfffc1e5fc 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.h
@@ -38,30 +38,26 @@ public:
UIPMC_Message_Block_Data_Iterator (iovec *iov, int iovcnt);
/// Get the next data block that has a size less than or equal
- /// to max_length. Return the length of the block returned.
- size_t next_block (size_t max_length,
- iovec &block);
+ /// to max_length. Return true if there is anything left.
+ bool next_block (size_t max_length, iovec &block);
private:
- enum State
- {
- INTER_BLOCK,
- INTRA_BLOCK
- };
-
iovec *iov_;
int iovcnt_;
+ int iov_index_;
// Point internal to a message block, if we have to split one up.
char *iov_ptr_;
- int iov_index_;
// Length used in a split message block.
size_t iov_len_left_;
// Current message iterator state.
- State state_;
-
+ enum State
+ {
+ INTER_BLOCK,
+ INTRA_BLOCK
+ } state_;
};
TAO_END_VERSIONED_NAMESPACE_DECL