Board index » delphi » Send/Receive Files using TClientSocket and TServerSocket
Muhammed-Sharif
![]() Delphi Developer |
Mon, 16 Jun 2003 13:27:16 GMT
|
Muhammed-Sharif
![]() Delphi Developer |
Mon, 16 Jun 2003 13:27:16 GMT
Send/Receive Files using TClientSocket and TServerSocket
Hello
I know this has been asked before, but I really need some code to send Thanks in advance Muhammed-Sharif |
Dirk Claessen
![]() Delphi Developer |
Tue, 17 Jun 2003 03:50:28 GMT
Re:Send/Receive Files using TClientSocket and TServerSocketMuhammed-Sharif <muhammed_sha...@hotmail.com> schreef in berichtnieuws 3a4acf50_2@dnews... Quote> Hello The data type is string, but note that you can force any data into a long string using SetLength() and Move(). Notes : -- Dirk Claessens Usage : function SendSockStream(Socket: TCustomWinSocket; Data: string): boolean; end; |
Muhammed-Shari
![]() Delphi Developer |
Tue, 17 Jun 2003 20:24:21 GMT
Re:Send/Receive Files using TClientSocket and TServerSocketThanks again Dirk! (you seem to be the only one who answers my questions) |
Ernst Gerlac
![]() Delphi Developer |
Tue, 17 Jun 2003 20:35:06 GMT
Re:Send/Receive Files using TClientSocket and TServerSocket"Muhammed-Sharif" <muhammed_sha...@hotmail.com> schrieb im Newsbeitrag news:3a4c8293_1@dnews... Quote> Thanks again Dirk! an use a user ready solution like Indy, witch handles blocksize and other things. Ernst Gerlach |
Muhammed-Shari
![]() Delphi Developer |
Tue, 17 Jun 2003 23:36:55 GMT
Re:Send/Receive Files using TClientSocket and TServerSocketQuote>Perhaps, it is, because most people do not worry about winsock internals reason (dont ask me why), I dont feel comfortable using 3rd party components |
Ernst Gerlac
![]() Delphi Developer |
Thu, 19 Jun 2003 18:39:09 GMT
Re:Send/Receive Files using TClientSocket and TServerSocket"Muhammed-Sharif" <muhammed_sha...@hotmail.com> schrieb im Newsbeitrag news:3a4ee0e1_1@dnews... Quote> >Perhaps, it is, because most people do not worry about winsock internals not the best). If you want to work without, have a look to gra...@mhn.org, you can see, how to work without 3rd party. Ernst Gerlach |
Juergen Schwarz
![]() Delphi Developer |
Fri, 20 Jun 2003 10:49:08 GMT
Re:Send/Receive Files using TClientSocket and TServerSocketHi Ernst, Ernst Gerlachwrote : [...] Quote> T_x_Socket is a 3rd party component too, from BORLAND (and absolutly Muhammed wrote about TClientSocket and TServerSocket. These components are directly from Borland (no 3rd party). I don't know what kind of component this T_x_Socket is, but it is not part of Delphi. Even the NetManage stuff has no component with this name. Juergen |
Ernst Gerlac
![]() Delphi Developer |
Fri, 20 Jun 2003 11:34:25 GMT
Re:Send/Receive Files using TClientSocket and TServerSocketa) Sorry, the winsocket is part of windows. Question: is windows developed by Microsoft or by Borland? Borland made a encapsulation like many other 3rd party. b) the "_x_" stands as a placeholder for "id" (Indy) or "nm" or ................... c) My feeling is, Borland did a very poor encapsulation, when ..... (sorry continue follows in german in a mail, my english is to bad) Ernst Gerlach "Juergen Schwarze" <juergen_schwa...@t-online.de> schrieb im Newsbeitrag Quote> Hi Ernst, |
Juergen Schwarz
![]() Delphi Developer |
Sat, 21 Jun 2003 00:57:06 GMT
Re:Send/Receive Files using TClientSocket and TServerSocketHi, Ernst Gerlach wrote : Quote> a) Sorry, the winsocket is part of windows. Question: is windows developed Delphi are made by Borland. Other translations (e.g. from Jedi) are '3rd party', because they are based on Borland Delphi. Quote> Borland made a encapsulation like many other 3rd party. of Borland Delphi there are two parties, Borland and the customer. Everything Borland offers to me (the customer) what is made by Borland, is not '3rd party'. But another company or programmer who offers programs/sources to work together with Borland Delphi is '3rd party'. So the NetManage components coming with Borland Delphi are '3rd party'. TClientSocket and TServerSocket are not '3rd party' by this definition. Quote> b) the "_x_" stands as a placeholder for "id" (Indy) or "nm" or Quote> c) My feeling is, Borland did a very poor encapsulation, when ..... TClientSocket and TServerSocket. Is there someone from the Borland staff, who could tell me about the bugs and shortcomings of these components? OK, they are very basic socket components, but for a small and simple program I don't need a full-blown package like Indy or ICS. Quote> (sorry continue follows in german in a mail, my english is to bad) Juergen |
Ernst Gerlac
![]() Delphi Developer |
Sat, 21 Jun 2003 01:52:46 GMT
Re:Send/Receive Files using TClientSocket and TServerSocket"Juergen Schwarze" <juergen_schwa...@t-online.de> schrieb im Newsbeitrag news:3a50b713_2@dnews... Quote> Hi, knowlage. Quote
good by Ernst Gerlach |
Kudzu - Team In
![]() Delphi Developer |
Sat, 21 Jun 2003 03:41:10 GMT
Re:Send/Receive Files using TClientSocket and TServerSocketjuergen_schwa...@t-online.de (Juergen Schwarze) wrote in <3a50b713_2@dnews>: Quote>Borland staff, who could tell me about the bugs and shortcomings of these 1) Indy will be in Delphi 6 and Kylix. I dont know if that still makes it 3rd 2) With Indy, things are well encapselated. If you use only the base TCP -- |
Ernst Gerlac
![]() Delphi Developer |
Sat, 21 Jun 2003 06:47:40 GMT
Re:Send/Receive Files using TClientSocket and TServerSocket"Juergen Schwarze" <juergen_schwa...@t-online.de> schrieb im Newsbeitrag Quote> Hi, WINDOWS API. Dont tell such a stuss. Switch on your head. Ernst Gerlach |
Carl
![]() Delphi Developer |
Wed, 09 Jul 2003 12:30:46 GMT
Re:Send/Receive Files using TClientSocket and TServerSocketQuote> (you seem to be the only one who answers my questions) -- Quote"Muhammed-Sharif" <muhammed_sha...@hotmail.com> wrote in message Quote> Thanks again Dirk! |
1. Sending and receive record using TServerSocket and TClientSocket
2. Sending a binary file using TClientSocket and TServerSocket
3. Sending Long messages using TServerSocket or TClientSocket
4. Monitor Size of Data sent by TServerSocket/TClientSocket
5. Send Files Using TClientSocket And Recieving Them Or Anything Related
6. Sending Files using TClientSocket
7. Send/Receive FIles using TWinSocket
8. How to send/receive files with TClientSocket & TServerSocket