buf = new char[sizeof(ctrls) + 1];
- cout << "dt = " << dt << endl;
-
#if defined( HAVE_SYS_TYPES_H ) && defined( HAVE_SYS_STAT_H )
fifo_name_1 = name + "1";
fifo_name_2 = name + "2";
}
pd1 = open( fifo_name_1.c_str(), O_RDWR );
- cout << "pd1 = " << pd1 << endl;
if ( pd1 == -1 ) {
SG_LOG( SG_IO, SG_ALERT, "Unable to open named pipe: " << fifo_name_1 );
valid = false;
}
pd2 = open( fifo_name_2.c_str(), O_RDWR );
- cout << "pd2 = " << pd2 << endl;
if ( pd2 == -1 ) {
SG_LOG( SG_IO, SG_ALERT, "Unable to open named pipe: " << fifo_name_2 );
valid = false;
SG_LOG( SG_IO, SG_ALERT, "Write error to named pipe: "
<< fifo_name_1 );
}
- // cout << " wrote to pipe" << endl;
length = sizeof(fdm);
result = read( pd2, (char *)(& fdm), length );
<< fifo_name_2 );
}
FGNetFDM2Props( &fdm, false );
- // cout << "read from pipe" << endl;
-
- // SG_LOG( SG_IO, SG_INFO, " End FGExternalPipe::udpate()" );
#endif
}