trap_retval RemotePut( byte *snd, trap_elen len ) { while( len >= MAX_DATA_SIZE ) { if( DoRemotePut( snd, MAX_DATA_SIZE ) == REQUEST_FAILED ) { return( REQUEST_FAILED ); } snd += MAX_DATA_SIZE; len -= MAX_DATA_SIZE; } if( DoRemotePut( snd, len ) == REQUEST_FAILED ) { return( REQUEST_FAILED ); } return( len ); }
trap_retval RemotePut( void *data, trap_elen len ) { while( len >= MAX_DATA_SIZE ) { if( DoRemotePut( data, MAX_DATA_SIZE ) == REQUEST_FAILED ) { return( REQUEST_FAILED ); } data = (char *)data + MAX_DATA_SIZE; len -= MAX_DATA_SIZE; } if( DoRemotePut( data, len ) == REQUEST_FAILED ) { return( REQUEST_FAILED ); } return( len ); }
unsigned RemotePut( char *snd, unsigned len ) { while( len >= MAX_DATA_SIZE ) { if( DoRemotePut( snd, MAX_DATA_SIZE ) == REQUEST_FAILED ) { return( REQUEST_FAILED ); } snd = (unsigned_8 *)snd + MAX_DATA_SIZE; len -= MAX_DATA_SIZE; } if( DoRemotePut( snd, len ) == REQUEST_FAILED ) { return( REQUEST_FAILED ); } return( len ); }