BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: Indy and simultaneous jobs

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Tomas
Guest





PostPosted: Thu Apr 15, 2004 2:22 pm    Post subject: Re: Indy and simultaneous jobs Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.