| 243 | } |
| 244 | |
| 245 | size_t ChannelSwitch::ChannelPutModifiable2(const std::string &channel, byte *inString, size_t length, int messageEnd, bool blocking) |
| 246 | { |
| 247 | ChannelRouteIterator it(*this); |
| 248 | it.Reset(channel); |
| 249 | |
| 250 | if (!it.End()) |
| 251 | { |
| 252 | BufferedTransformation &target = it.Destination(); |
| 253 | const std::string &targetChannel = it.Channel(); |
| 254 | it.Next(); |
| 255 | if (it.End()) // there is only one target channel |
| 256 | return target.ChannelPutModifiable2(targetChannel, inString, length, messageEnd, blocking); |
| 257 | } |
| 258 | |
| 259 | return ChannelPut2(channel, inString, length, messageEnd, blocking); |
| 260 | } |
| 261 | |
| 262 | void ChannelSwitch::AddDefaultRoute(BufferedTransformation &destination) |
| 263 | { |
no test coverage detected