Article View: borland.public.cppbuilder.internet.socket
Article #2936TWinSocketStream Read in BYTE buffer
From: Maurice Anderson
Date: Fri, 23 Dec 2005 18:09
Date: Fri, 23 Dec 2005 18:09
15 lines
1467 bytes
1467 bytes
Hello, I have a BYTE buffer and Stream defined as: BYTE rbuf[256]; TWinSocketStream* str = new TWinSocketStream(ClientSocket, 5000); Once the data is read from str into the buffer, how do I go about using the buffer? I am not familiar with the BYTE type except to know that it's a 8 bit unsigned integer. So lets say I send a file over, how would I 'convert' the file back to it's original format and save it to say the C drive. Or lets say I sent a simple text message over as "Hello World". How do I recover the messages from rbuf? Thanks
Technical Details
Message-ID:
<43ac3d34$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,74cdc31c66b3abd9,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Maurice Anderson" <mauriceanderson@hotmail.com> Newsgroups: borland.public.cppbuilder.internet.socket Subject: TWinSocketStream Read in BYTE buffer Date: Fri, 23 Dec 2005 10:09:36 -0800 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 64.30.203.223 Message-ID: <43ac3d34$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1135361332 64.30.203.223 (23 Dec 2005 10:08:52 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail