unsigned RemotePut( char *rec, unsigned len ) { #ifdef __WINDOWS__ int rc; while( 1 ) { rc = ConvPut( _id, rec, len, NO_BLOCK ); if( rc == BLOCK ) SetExecutionFocus( _id ); else break; } #else #ifdef DEBUG_ME Blip( &_aa, &_bb, 'T' ); #endif ConvPut( _id, rec, len, BLOCK ); #ifdef DEBUG_ME Blip( &_aa, &_bb, 't' ); #endif #endif return( len ); }
trap_retval RemotePut( byte *rec, trap_elen len ) { #ifdef __WINDOWS__ int rc; for( ;; ) { rc = ConvPut( _id, rec, len, NO_BLOCK ); if( rc == BLOCK ) SetExecutionFocus( _id ); else break; } #else #ifdef DEBUG_ME Blip( &_aa, &_bb, 'T' ); #endif ConvPut( _id, rec, len, BLOCK ); #ifdef DEBUG_ME Blip( &_aa, &_bb, 't' ); #endif #endif return( len ); }
unsigned RemoteGet( char *rec, unsigned len ) { unsigned long rc; #ifdef __WINDOWS__ while( 1 ) { rc = ConvGet( _id, rec, len, NO_BLOCK ); if( (rc & 0xffff) == BLOCK ) SetExecutionFocus( _id ); else break; } #else #ifdef DEBUG_ME Blip( &_a, &_b, 'G' ); #endif rc = ConvGet( _id, rec, len, BLOCK ); #ifdef DEBUG_ME Blip( &_a, &_b, 'g' ); #endif #endif return( rc >> 16 ); }
trap_retval RemoteGet( byte *rec, trap_elen len ) { unsigned long rc; #ifdef __WINDOWS__ for( ;; ) { rc = ConvGet( _id, rec, len, NO_BLOCK ); if( (rc & 0xffff) == BLOCK ) SetExecutionFocus( _id ); else break; } #else #ifdef DEBUG_ME Blip( &_a, &_b, 'G' ); #endif rc = ConvGet( _id, rec, len, BLOCK ); #ifdef DEBUG_ME Blip( &_a, &_b, 'g' ); #endif #endif return( rc >> 16 ); }