Article View: borland.public.cppbuilder.internet.socket
Article #2941Re: TWinSocketStream Read in BYTE buffer
From: Remy Lebeau (TeamB)
Date: Sun, 25 Dec 2005 08:43
Date: Sun, 25 Dec 2005 08:43
24 lines
1812 bytes
1812 bytes
"Maurice Anderson" <mauriceanderson@hotmail.com> wrote in message news:43acc4c5$1@newsgroups.borland.com... > Is ReadBuf the function in the server thread to read data from the client? You can call it from both sides. Assuming you want to implement two-way communication. > Is WriteBuf also meant to bein the server thread to write the > contents of the buffer into a new file name? No. WriteBuf() is for sending data on the socket. It takes a TWinSocketStream as a parameter. I intentionally did not include specific code for handling the files, as I would leave that up to you to decide how to manage. I gave you the socket code only. > How do I send the byte ahead of time when I launch the server thread? I already gave you the code to do that. Please re-read my earlier message again. Gambit
Technical Details
Message-ID:
<43ae5b51$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news2.volia.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43ac3d34$1@newsgroups.borland.com> <43ac6028$1@newsgroups.borland.com> <43acc4c5$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,74cdc31c66b3abd9 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <43ac3d34$1@newsgroups.borland.com> <43ac6028$1@newsgroups.borland.com> <43acc4c5$1@newsgroups.borland.com> Subject: Re: TWinSocketStream Read in BYTE buffer Date: Sun, 25 Dec 2005 00:43:33 -0800 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <43ae5b51$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1135500113 68.69.17.41 (25 Dec 2005 00:41:53 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news2.volia.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail