It is currently Fri Mar 22, 2019 9:42 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Keep http client connection open and feed it data?
PostPosted: Thu Mar 14, 2019 8:41 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Jan 20, 2014 6:32 pm
Posts: 193
I not sure how to do or if it is even possible but is there a way can have a http connection accepted by client and then have the program download something like a file and spit it out to the client.

But then when the download is finished it will not close the client connection it will start on next file and spit it out to client?

Hope that some one understands what I would like to try?

Any ideas / code would be helpful.

Thanks

_________________
WARNING: I dont know what I am doing! I just put stuff here and there and sometimes like magic it works. So please improve on my code and post your changes so I can learn more. TIA


Last edited by vwidmer on Fri Mar 15, 2019 12:18 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Keep tcp client connection open and feed it data?
PostPosted: Thu Mar 14, 2019 9:12 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Dec 04, 2015 9:26 pm
Posts: 271
Did you mean: Http Connection, or TCP Socket?


Top
 Profile  
Reply with quote  
 Post subject: Re: Keep tcp client connection open and feed it data?
PostPosted: Thu Mar 14, 2019 10:38 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Jan 20, 2014 6:32 pm
Posts: 193
http I guess..

like want to download files but keep feeding them to client..

example:

APP has list of say 10 urls with txt files.. http://domain.tld/somefiles.txt

you then make http connection to the APP and it starts downloading the first file and as it downloading it kind of just pipes it directly to the client that is connected to the APP but when the file finishes downloading instead of closing the connection to the client it just connects to the next url and continues feeding it to the client...

Thanks

_________________
WARNING: I dont know what I am doing! I just put stuff here and there and sometimes like magic it works. So please improve on my code and post your changes so I can learn more. TIA


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 9 guests


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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye