Beispiel #1
0
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 );
}
Beispiel #2
0
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 );
}
Beispiel #3
0
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 );
}
Beispiel #4
0
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 );
}