 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Tomas Guest
|
Posted: Thu Apr 15, 2004 2:22 pm Post subject: Re: Indy and simultaneous jobs |
|
|
Ohh in addition, my server side is a php script
Tomas wrote:
| Quote: | I'm a new indy user so i had read a couples of articles which written
by Chad Hower. In his "Introduction to Indy" article he said that
"Threading provides true concurrency". I'm using TidHttp in my
application and now i wants to know how can i run simultaneous jobs
with Indy. I get confused about how should i use threads with TidHttp.
In my project, my client may send file or commands to the server in
the same time. How can i make these works simultaneously ? I mean i
don't want to wait for to send command when i'm sending a large file.
Should i use this way :
TFileSendThread = class(TThread)
procedure Execute; override;
end;
TCommandSendThread = class(TThread)
procedure Execute; override;
end;
in their execute sections, sending command and file with Http.Post but
what about get response for each other. I mean i want to handle the
result from these jobs too.
What is the way to use Indy in real threading mode ?
Kind Regards,
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|