| 216 | } |
| 217 | |
| 218 | void sendString(const std::string& str) |
| 219 | { |
| 220 | #ifdef LIBTAS_LIBRARY |
| 221 | LOG(LL_DEBUG, LCF_SOCKET, "Send socket string %s", str.c_str()); |
| 222 | #endif |
| 223 | unsigned int str_size = str.size(); |
| 224 | sendData(&str_size, sizeof(unsigned int)); |
| 225 | if (str_size > 0) |
| 226 | sendData(str.c_str(), str_size); |
| 227 | } |
| 228 | |
| 229 | int receiveData(void* elem, unsigned int size) |
| 230 | { |
no test coverage detected