🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools.winsock
Article #9

Winsock and Missing Packets?

#9
From: Anthony Lee
Date: Fri, 21 Dec 2001 02:47
33 lines
2410 bytes
Hi all,

I am using the winsock for Visual Basic 6.0. The program that
I am debugging, request about 367 lines of ASCII data from
a UNIX server. Each line ends with a linefeed character and
the data is terminated by a NULL (0). I am able to use 
windump to demonstrate that the PC (Client machine) receives
all the required data from the server. However, the client
VB program just seem to have problem getting all the server
data. I have noticed that a call to GetData returns more
than one TCP packet. The VB Program seems to able to get
all the data from the server if the last byte of the data
returned by GetData ends in a linefeed character. If 
there are more characters after the last linefeed from
GetData then the VB Progam just cannot retrieve the
reminding TCP packets even though windump indicates that
all the data has arrived. 

Is there something that I need to adjust? Is this a
problem with the receive buffer of winsock as supplied by
VB 6?

Thank you
-- 
Anthony Lee	
Energex                                            
150 Charlotte Street                 ..--  __o 
Brisbane                        ....--   _ \<,_               
Qld 4000                       ____     (_)/ (_)                         
Australia
voice:+61 7 3407 5071, 3407 4541
fax:  +61 7 3407 5062, 3407 4607
email: AL012@energex.com.au
Technical Details
Message-ID: <3C22A2DC.3C003023@energex.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!bunyip.cc.uq.edu.au!inetbws1.citec.com.au!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 108c83,62bee58e364b5640,start
X-Google-Attributes: gid108c83,public
X-Google-Thread: f96de,62bee58e364b5640,start
X-Google-Attributes: gidf96de,public
X-Google-Thread: f645d,62bee58e364b5640,start
X-Google-Attributes: gidf645d,public
X-Google-ArrivalTime: 2001-12-20 18:50:45 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!bunyip.cc.uq.edu.au!inetbws1.citec.com.au!not-for-mail
From: Anthony Lee <al012@energex.com.au>
Newsgroups: comp.os.ms-windows.programmer.tools.winsock,comp.lang.basic.visual,aus.computers
Subject: Winsock and Missing Packets?
Date: Fri, 21 Dec 2001 12:47:56 +1000
Organization: CITEC
Lines: 33
Message-ID: <3C22A2DC.3C003023@energex.com.au>
NNTP-Posting-Host: 147.209.216.246
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686)
X-Accept-Language: en