MCPcopy Create free account
hub / github.com/Gecode/gecode / sendRawMsg

Method sendRawMsg

gecode/search/cpprofiler/connector.hpp:250–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 2

dataMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected