| 248 | } |
| 249 | |
| 250 | inline void |
| 251 | Connector::sendRawMsg(const std::vector<char>& buf) { |
| 252 | uint32_t bufSize = static_cast<uint32_t>(buf.size()); |
| 253 | int bufSizeLen = sizeof(uint32_t); |
| 254 | sendall(sockfd, reinterpret_cast<char*>(&bufSize), &bufSizeLen); |
| 255 | int bufSizeInt = static_cast<int>(bufSize); |
| 256 | sendall(sockfd, reinterpret_cast<const char*>(buf.data()), &bufSizeInt); |
| 257 | } |
| 258 | |
| 259 | inline void |
| 260 | Connector::sendOverSocket(void) { |