Beispiel #1
0
//---------------------------------------------------------------------------
int TS7Client::PDURequested()
{
    int Requested, Negotiated;
    if (Cli_GetPduLength(Client, &Requested, &Negotiated)==0)
        return Requested;
    else
        return 0;
}
Beispiel #2
0
//------------------------------------------------------------------------------
// Unit Connection
//------------------------------------------------------------------------------
int CliConnect()
{
    int Requested, Negotiated, res;

    res = Cli_ConnectTo(Client, Address,Rack,Slot);
    if (Check(res,"UNIT Connection")) {
        Cli_GetPduLength(Client, &Requested, &Negotiated);
        printf("  Connected to   : %s (Rack=%d, Slot=%d)\n",Address,Rack,Slot);
        printf("  PDU Requested  : %d bytes\n",Requested);
        printf("  PDU Negotiated : %d bytes\n",Negotiated);
    };
    return !res;
}