Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RGET command help

Status
Not open for further replies.

demohr

Programmer
Apr 19, 2006
5
US
Hi,

I am converting some code written in ASPECT to C# for work. I have no manual for ASPECT, no copy of Procomm, and no experience with ASPECT, but its going OK so far.

Could someone please tell me exactly what the following command is doing: rget buf 80 5

I have a rough idea what is going on based on the context of the script, but I would really appreciate some more info on this one.

Thanks,
demohr
 
Here is a copy and paste from the help file, in short it is waiting up to five seconds for 80 characters and will store what comes in into the string variable buf.

rget strvar [strlength [integer | FOREVER]] [RAW]

Receives and stores a text string sent by a remote system.

strvar The variable where the data will be stored.
strlength An integer value ranging from 0 to 256, specifying the maximum number of characters to receive before continuing processing. If strlength is not included, the maximum of 256 characters is used.
integer Determines the maximum number of seconds to wait for the string from the remote system before timing out. If not specified, the default of 30 seconds is used.
FOREVER Forces the rget to wait indefinitely for the requested number of characters, or for the character value specified with set aspect rgetchar.

RAW If specified, rget data will be retrieved unchanged from the receive data buffer, bypassing the translate table and 8th-bit stripping.



 
Thanks,

The "5" is what really had me stumped!

demohr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top