Board index » delphi » Send stream from client to server with Indy
Albert
![]() Delphi Developer |
Sun, 01 Feb 2004 22:08:05 GMT
|
Albert
![]() Delphi Developer |
Sun, 01 Feb 2004 22:08:05 GMT
Send stream from client to server with Indy
Hello
I'm new here and need your 'start' help. Please give me tip how to send TIA Albert |
Hadi Hariri - Team In
![]() Delphi Developer |
Sun, 01 Feb 2004 23:13:24 GMT
Re:Send stream from client to server with Indydev...@yahoo.com (Albert) wrote in <3b7a8247_1@dnews>: Quote>Hello transfering from the server to the client that means that the server is issuing a WriteStream. IF you want the client to send to the server then issue the WriteStream on the client and the ReadStream on the server. |
Arthur
![]() Delphi Developer |
Sun, 01 Feb 2004 23:24:08 GMT
Re:Send stream from client to server with IndyQuote"Albert" <dev...@yahoo.com> wrote in message news:3b7a8247_1@dnews... this one up for yourself.. Especially as you tell that you have seen this in examples.. Below here a verry simple example... I suggest you start downloading the help files, and start reading them. Global Constant: SendStreamCommand = 'HEY SERVER, WAKE UP, GOING TO SEND YOU A STREAM!'; Client side: Client.WriteLn(SendStreamCommand); Server Side: For example in server.execute event. AThread.Connection.ReadLN(Command); I'm assuming here you know how to create and handle streams.. |
Alber
![]() Delphi Developer |
Sun, 01 Feb 2004 23:26:24 GMT
Re:Send stream from client to server with IndyQuote> >I'm new here and need your 'start' help. Please give me tip how to send Please let me know what's wrong. This is my client: And this my server: and I get only exception #10053 Thanks Albert |
Hadi Hariri - Team In
![]() Delphi Developer |
Mon, 02 Feb 2004 01:07:59 GMT
Re:Send stream from client to server with IndyWrite/Read stream automatically send the size for (by default IIRC). Your problem might be there. |
Glenn Hancoc
![]() Delphi Developer |
Mon, 02 Feb 2004 22:29:25 GMT
Re:Send stream from client to server with IndyYou know Arthuro, its not always so obvious where to go and read about any particular subject. I have been delving into Delphi's help files now for a couple of days and most of their examples don't even work. Its also strange that I haven't even been able to find the ReadStream function connected to a TServerSocket component. I greatly appreciate your assistance in this matter, but if your going to Thanks, -- |
Glenn Hancoc
![]() Delphi Developer |
Mon, 02 Feb 2004 23:24:10 GMT
Re:Send stream from client to server with IndyArthuro, I tried you example code and everything seems to have compiled ok, but the Also, you mentioned downloading and reading the help files to the last Thanks, -- |
Glenn Hancoc
![]() Delphi Developer |
Mon, 02 Feb 2004 23:29:42 GMT
Re:Send stream from client to server with IndyI also have a question that may be stupid, but I have to ask it. Handling these streams in this manor: Will there be a problem with the server getting confused and receiving two command sequences from two different clients, and the processing getting scrambled on the server side? Thanks, -- |
Don Siders - Team Ind
![]() Delphi Developer |
Tue, 03 Feb 2004 01:23:02 GMT
Re:Send stream from client to server with IndyQuote"Glenn Hancock" <ghanc...@softeksupport.com> wrote in message Quote> I also have a question that may be stupid, but I have to ask it. Handling OnExecute or CommandHandlers. |
Arthur
![]() Delphi Developer |
Tue, 03 Feb 2004 16:28:32 GMT
Re:Send stream from client to server with IndyQuote"Glenn Hancock" <ghanc...@softeksupport.com> wrote in message Quote> Arthuro, In one of my older projects i have something that looks like this: I've put the command/stream handling in a seperate procedure, this is a Pr Indy 9 project. With Athread.Connection Do Quote> Also, you mentioned downloading and reading the help files to the last the Indy website: http://www.nevrona.com/indy Quote> Thanks, |
Arthur
![]() Delphi Developer |
Tue, 03 Feb 2004 16:43:21 GMT
Re:Send stream from client to server with IndyQuote"Glenn Hancock" <ghanc...@softeksupport.com> wrote in message Quote> You know Arthuro, its not always so obvious where to go and read about talking about having seen the examples, i know it should be rather simple to come to the conclusion on how to do it. I don't know anything about Delphi's TServerSocket, i've never understood it, also never taken the time to look up how it works in depth. I suppose they don't support streaming if you say you can't find the readstream function. But you were talking about INDY components, so you're looking at the wrong place for information.. > I greatly appreciate your assistance in this matter, but if your going to Quote> get upset with someone not understanding then perhaps you should take a server-> WriteStream Into Client-> WriteStream (This is of course an over simplified example!). Quote> The number one complaint from any Delphi Programmer has and seems to enough to have figured that one out. From what you mentioned above i gather that you were looking at the wrong help instructions.. Quote>I hope to one day be as smart on this subject as you appear to be, but it few times.. Programming with Indy components is really verry simple, you have to set Regards, |
Glenn Hancoc
![]() Delphi Developer |
Tue, 03 Feb 2004 19:51:51 GMT
Re:Send stream from client to server with IndyThanks, I had already figured it out after finding and reading the articles. You really should remember that just because someone doesn't understand something as well as you do, doesn't make us dumb. I am sure you a great guy, but you come across as being very rude in your comments... If everyone responded the way you do, newsgroups would hardly be used at Thanks anyway, -- |
1. Indy: client send, receive stream at the same time
2. Sending stream from HTTP client to HTTP server.
3. How to send Binary Data Stream using Indy Socket Server
4. Streaming & Indy Server/Client
5. Indy: Client don't receive or Server don't send
6. Indy: Server sending to Client
7. Can INDY HTTP Client Send Files To Server?
8. Copying streams from 1 client to another client via a server (IdTCPClient/IdTCPServer)
9. Post data using Indy client to Indy server
10. Indy TCP Server slows down when clients connect (Indy Newbie)