84 if ( io->get_type() == sgDDSType ) {
85 buf =
reinterpret_cast<char*
>(&ctrls.dds);
88 buf =
reinterpret_cast<char*
>(&ctrls.net);
94 if ( io->get_type() == sgDDSType ) {
100 if ( ! io->write( buf, length ) ) {
101 SG_LOG( SG_IO, SG_ALERT,
"Error writing data." );
107 if ( io->get_type() == sgFileType ) {
108 if ( io->read( buf, length ) == length ) {
109 SG_LOG( SG_IO, SG_INFO,
"Success reading data." );
112 }
else if ( io->get_type() == sgDDSType ) {
113 while ( io->read( buf, length ) == length ) {
114 SG_LOG( SG_IO, SG_INFO,
"Success reading data." );
118 while ( io->read( buf, length ) == length ) {
119 SG_LOG( SG_IO, SG_INFO,
"Success reading data." );