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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Transfer Timeout

Status
Not open for further replies.

DJWF1

Programmer
Aug 13, 2001
6
AU
Hello,

My script sends a file to another computer and waits for a Acknowledge message (WAITFOR "ACK" UserTimeout) after the file transfer. If the file transfer times out I use XFERCANCEL to abort it but then the screen shows hundreds of characters from the file that was transfered. How can I clean up this characters from the rx buffer?


Thanks in advance.
 
You can try either using
yield
or
pause <time in sec>

or

Clears the receive data buffer. Any characters that have been received but not processed or displayed will be lost when rxflush executes.

Example

proc main
string DataStr ; Data from COM port.

rxflush ; Clear all awaiting COM data.
transmit &quot;Enter 50 chars: &quot; ; Ask remote for 50 characters.
rget DataStr 50 ; Get 50 characters from remote.
endproc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top