Ejemplo n.º 1
0
void ServerConnectionAdapter::ioException(IOException& e) {
  fprintf(stdout, "[NT] IOException message: %s\n", e.what());
  fflush(stdout);
	if(e.isEOF())
		gotoState(&ServerConnectionState::CLIENT_DISCONNECTED);
	else
		gotoState(new ServerConnectionState_Error(e));
	adapterListener.close(*this, false);
	m_IsAdapterListenerClosed=true;
	if (readThread)    {
	  readThread->stop();
	}
}
Ejemplo n.º 2
0
Archivo: py.cpp Proyecto: JIRL/canio2
void can_iface_ex_translator(const IOException& e) {
    PyErr_SetString(PyExc_RuntimeError, e.what().c_str());
}