
04-22-2003, 09:04 AM
|
|
Newcomer
|
|
Join Date: Apr 2003
Posts: 8
|
|
Checking received data length of winsock??
|
Hi,
I'm using Winsock to connect to a server and have to supply a valid password and user ID for a successful connection. I want to implement some error checking capability to my program. When my passwords and user IDs are valid, I will start to receive some data but when they are invalid, I will not receive any data. Is it possible to check the data length of my received data so that I can do something like this
if received data length = 0, generate error message and prompt user to try connecting again.
if received data length > 0, save the data to a file and display in a textbox.
Can I check/determine the data length of the data I receive from winsock? Is it some how related to winsock events. I'm very very new to VB especially with the winsock thing. Hope you guys can give me some clues and help on this small problem of mine ... thanks
|
|