Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

has the TCPRecv() command finished to receiving data ?

$
0
0
hello,

If i use TCPRecv($Socket, 2048) but TCPSend() transmit more than 2048 bytes, i lose data.
Is there a way to know when the TCPRecv() command has no more data to read from a single TCPSend()?
for example, I wonder if there's a way similar to that of reading the output of a dos command ?

[ autoit ]      
 ; read all the output of a dos command $iPID = Run('"' & @ComSpec & '" /c ' & $sCommand, "", @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) While 1 $sOutput &= StdoutRead($iPID, False, False) If @error Then ; <--- no more data to read <--- ExitLoop EndIf Sleep(10) WEnd
thanks

Viewing all articles
Browse latest Browse all 12506

Trending Articles