🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.ms-windows.programmer.tools.winsock
1 messages
1 total messages Started by Anthony Lee Fri, 21 Dec 2001 02:47
Winsock and Missing Packets?
#9
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads