Article View: borland.public.cppbuilder.internet.socket
Article #5023how to send buffer size message and buffer
From: duncan
Date: Wed, 17 Nov 2004 10:05
Date: Wed, 17 Nov 2004 10:05
14 lines
1448 bytes
1448 bytes
Hi I am trying to send data using TClientSocket and TServerSocket ClientSocket is using Socket->SendBuf(memory_stream->Memory, (int)size); The message is picked up in the ServerSocket OnRead event and this is where the message is processed. However I do not know the size of the incomming buffer. I have read that this needs to be sent also, however if I send this then the ServerSocket OnRead picks up on this also. So I am unsure how to send the info or how to code my ServerSocket::OnRead event to handel the size and the actual buffer. An examples would be greatfully received! Thanks Duncan
Technical Details
Message-ID:
<419b3068$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!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,e51687cce2165a07,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "duncan" <no_spam@spamsucks.com> Sender: "duncan" <no_spam@spamsucks.com> Reply-To: "duncan" <no_spam@spamsucks.com> Subject: how to send buffer size message and buffer Newsgroups: borland.public.cppbuilder.internet.socket X-User-Info: 194.129.249.241 NNTP-Posting-Host: 207.105.83.66 Message-ID: <419b3068$1@newsgroups.borland.com> Date: 17 Nov 2004 03:05:12 -0700 X-Trace: newsgroups.borland.com 1100689512 207.105.83.66 (17 Nov 2004 03:05:12 -0700) Lines: 14 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail