Sets actual client instance (can be nullptr).
| 209 | msg->setFlags(MSG_ALL_FLAGS, MSG_MAGIC_FLAG); |
| 210 | msg->setData(reinterpret_cast<unsigned8*>(payload.Data()), payload.Size()); |
| 211 | msg->send(); |
| 212 | ++serial; |
| 213 | return true; |
| 214 | } |
| 215 | |
| 216 | void decodeURLAddress(RString address, RString& ip, int& port) |
| 217 | { |
| 218 | const char* ptr = strrchr(address, ':'); |
| 219 | if (!ptr) |
| 220 | { |
| 221 | ip = address; |
| 222 | return; |
| 223 | } |
| 224 | ip = address.Substring(0, ptr - address); |
no test coverage detected