Add a feature "OnReceive" to can make a progress bar #6
Replies: 4 comments
-
|
Why not use common TBlockSocket.OnStatus event? It can be used for progressbars on any socket and for all protocols. |
Beta Was this translation helpful? Give feedback.
-
So you made a OnReceive but not an OnSend? Don't you need a progressbar for sending too? Anyway... like @geby mentioned, there is already a TBlockSocket.OnStatus. You could just hook into THTTPSend.Sock.OnStatus. |
Beta Was this translation helpful? Give feedback.
-
|
In the "procedure TBlockSocket.RecvStreamSize" is a while, there I have include the "OnReceive". I test the "TBlockSocket.OnStatus". |
Beta Was this translation helpful? Give feedback.
-
RecvStreamSize -> RecvBufferStr -> RecvBufferEx -> RecvPacket -> RecvBuffer |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have add in "httpsend.pas" and "blcksock.pas" the feature "OnReceive". With this event I can set a prograssbar to see the download state.
I have tested ist, please change this files in the git repro.
Thank you very much.
httpsend.zip
Beta Was this translation helpful? Give feedback.
All reactions