Exemple #1
0
//------------------------------------------------------------------------------
// Async Upload DB0 (using event wait as completion trigger)
//------------------------------------------------------------------------------
void AsEWUploadDB0()
{
    int Size = sizeof(Buffer); // Size is IN/OUT par
    // In input it tells the client the size available
    // In output it tells us how many bytes were uploaded.
    int res;
    JobDone=false;

    res=Cli_AsUpload(Client, Block_SDB, 0, &Buffer, &Size);

    if (res==0)
    {
        res=Cli_WaitAsCompletion(Client,3000);
    }

    if (Check(res,"Async (Wait event) Block Upload (SDB 0)"))
    {
        printf("Dump (%d bytes) :\n",Size);
        hexdump(&Buffer,Size);
    }
}
Exemple #2
0
//---------------------------------------------------------------------------
int TS7Client::WaitAsCompletion(longword Timeout)
{
    return Cli_WaitAsCompletion(Client, Timeout);
}