~zooko/cryptopp/trunk

« back to all changes in this revision

Viewing changes to channels.cpp

  • Committer: weidai
  • Date: 2005-07-12 04:23:32 UTC
  • Revision ID: svn-v4:57ff6487-cd31-0410-9ec3-f628ee90f5f0:trunk/c5:198
port to MSVC .NET 2005 beta 2

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
// ChannelSwitch
143
143
///////////////////
144
144
 
145
 
unsigned int ChannelSwitch::ChannelPut2(const std::string &channel, const byte *begin, unsigned int length, int messageEnd, bool blocking)
 
145
size_t ChannelSwitch::ChannelPut2(const std::string &channel, const byte *begin, size_t length, int messageEnd, bool blocking)
146
146
{
147
147
        if (m_blocked)
148
148
        {
224
224
        return false;
225
225
}
226
226
 
227
 
byte * ChannelSwitch::ChannelCreatePutSpace(const std::string &channel, unsigned int &size)
 
227
byte * ChannelSwitch::ChannelCreatePutSpace(const std::string &channel, size_t &size)
228
228
{
229
229
        m_it.Reset(channel);
230
230
        if (!m_it.End())
239
239
        return NULL;
240
240
}
241
241
 
242
 
unsigned int ChannelSwitch::ChannelPutModifiable2(const std::string &channel, byte *inString, unsigned int length, int messageEnd, bool blocking)
 
242
size_t ChannelSwitch::ChannelPutModifiable2(const std::string &channel, byte *inString, size_t length, int messageEnd, bool blocking)
243
243
{
244
244
        ChannelRouteIterator it(*this);
245
245
        it.Reset(channel);