torch/lib/c10d/Utils.hpp
// receive a string as sent in sendString
receive a string as sent in sendString
receive a string as sent in sendString
inline std::string recvString(int socket) {
  SizeType valueSize;
  recvBytes<SizeType>(socket, &valueSize, 1);
  std::vector<char> value(valueSize);
  recvBytes<char>(socket, value.data(), value.size());
  return std::string(value.data(), value.size());
}
inline std :: string recvString ( int socket ) { SizeType valueSize ; recvBytes < SizeType > ( socket , & valueSize , 1 ) ; std :: vector < char > value ( valueSize ) ; recvBytes < char > ( socket , value . data ( ) , value . size ( ) ) ; return std :: string ( value . data ( ) , value . size ( ) ) ; }
receive a string as sent in sendString
receive a string as sent in sendString