TCP Recv command

Description:

This command receives data from a connected TCP socket.

Format:

TCP RECV CONN_ID conn_id [IDENTIFIER identifier] [variable1 = expression1] [variable2 = expression2]

Parameters:

conn_id

integer specifying the connection on which the data must be received.

identifier

An integer constant representing the request identifier (should not be modified).

variable1 = expression1
variable2 = expression2
...

You can attach some variable assignments to a request in order to:

Example

String szRecvData;
Integer iRecvLength;
Begin
    TCP CONNECT "localhost:23" CONN_ID 1;
    TCP SEND {"0xfffc23fffc24fffa1800",
                "ANSI",
                "0xfff0fffa2700fff0"} CONN_ID 1 IDENTIFIER 3;

    TCP RECV CONN_ID 1 szRecvData=GetContent() iRecvLength=GetContentLength();
 

See also:





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap