🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4983

Re: TServerSocket: GetThread() & OnExecute()

#4983
From: Vladimir Stefanovic
Date: Mon, 08 Nov 2004 13:41
25 lines
1859 bytes
Hi Remy,

I think I succeded to find most of the bugs in my
client/server sending/receiving code. Thank you
for forcing me to find them refering to bugs, bugs &
bugs in my code ;)

The problems were in my sending function which was
not compatibile with the receiving function, not
to mention that sending function overall was bad.

The old (bugy) sending code worked well because all
data transfer was done in one buffer, so I couldn't
check what will happen when the stream size exceeds the
initial buffer size.

My sending (bugy) function worked like this:
   BuffSize Buffer BuffSize Buffer BuffSize Buffer, etc
...instead of:
   WholeSize Buffer Buffer Buffer, etc



Best regards,
Vladimir Stefanovic
Technical Details
Message-ID: <418f7791@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <418b7aa7$1@newsgroups.borland.com> <418bc61c$1@newsgroups.borland.com> <418bcd31@newsgroups.borland.com> <418beaa9$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3fbffcd0acc17958
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Vladimir Stefanovic" <spam@not.needed>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <418b7aa7$1@newsgroups.borland.com> <418bc61c$1@newsgroups.borland.com> <418bcd31@newsgroups.borland.com> <418beaa9$1@newsgroups.borland.com>
Subject: Re: TServerSocket: GetThread() & OnExecute()
Date: Mon, 8 Nov 2004 14:41:11 +0100
Lines: 28
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.190
Message-ID: <418f7791@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1099921297 213.137.116.190 (8 Nov 2004 05:41:37 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail