예제 #1
0
bool DebuggerCommand::recv(DebuggerThriftBuffer &thrift) {
  try {
    recvImpl(thrift);
  } catch (...) {
    Logger::Verbose("DebuggerCommand::recv(): a socket error has happened");
    thrift.close();
    return false;
  }
  return true;
}
예제 #2
0
bool DebuggerCommand::send(DebuggerThriftBuffer &thrift) {
  try {
    thrift.reset(false);
    sendImpl(thrift);
    thrift.flush();
  } catch (...) {
    Logger::Verbose("DebuggerCommand::send(): a socket error has happened");
    thrift.close();
    return false;
  }
  return true;
}