Article View: borland.public.cppbuilder.internet.socket
Article #5247TClientSocket/TServerSocket data exchange...
From: Vladimir Stefanovic
Date: Mon, 27 Sep 2004 18:01
Date: Mon, 27 Sep 2004 18:01
27 lines
1607 bytes
1607 bytes
Hi, I want my Client to send a request to Server to get some file. Imaginary protocol: GET filename.txt Then, I want the Server to receive the request and to send back the Client the desired file contents. Imaginary protocol: FIL this_is_the_pure_ascii_contents_of_the_filename.txt The Server receives data through it's own thread stThreadBlocking & ServerSocketGetThread(). How I'm supposed to SEND BACK the Client the desired file? Where I have to place the sending code? Should I have the alternative TClientSocket on Server to use for sending? There are some examples of how to send a row of text back ( SendText() ) but my file can be several KB so I cannot send the file back from only one pass... Best regards, Vladimir Stefanovic
Technical Details
Message-ID:
<41585538@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,20726cd0f74fe942,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Vladimir Stefanovic" <spam@not.needed> Newsgroups: borland.public.cppbuilder.internet.socket Subject: TClientSocket/TServerSocket data exchange... Date: Mon, 27 Sep 2004 20:01:45 +0200 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 NNTP-Posting-Host: 213.137.116.140 Message-ID: <41585538@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1096308024 213.137.116.140 (27 Sep 2004 11:00:24 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail