Archived

This topic is now archived and is closed to further replies.

mztan

winsock error 10054 in VB

Recommended Posts

perhaps i''m a newb for not using C++, but in any case, here it goes: So, i have a program in VB, and there is a client side and a server side, using UDP. After a number of packets are sent back and forth, the client side crashes with teh error 10054: "connection closed by remote side" or something like that. I read the microsoft knowledge base article describing the bug dealing with win2k (and with winxp im assuming). In the article, the resolution says: Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long) Dim szData As String On Error Resume Next Winsock1.GetData szData If Err Then '' handle the error here End if End Sub HOW do i handle the error? thanks in advance

Share this post


Link to post
Share on other sites