| 228 | } |
| 229 | |
| 230 | byte * ChannelSwitch::ChannelCreatePutSpace(const std::string &channel, size_t &size) |
| 231 | { |
| 232 | m_it.Reset(channel); |
| 233 | if (!m_it.End()) |
| 234 | { |
| 235 | BufferedTransformation &target = m_it.Destination(); |
| 236 | const std::string &ch = m_it.Channel(); |
| 237 | m_it.Next(); |
| 238 | if (m_it.End()) // there is only one target channel |
| 239 | return target.ChannelCreatePutSpace(ch, size); |
| 240 | } |
| 241 | size = 0; |
| 242 | return NULL; |
| 243 | } |
| 244 | |
| 245 | size_t ChannelSwitch::ChannelPutModifiable2(const std::string &channel, byte *inString, size_t length, int messageEnd, bool blocking) |
| 246 | { |