Solved

Winsock Close event not working.

Posted on 1998-11-04
2
248 Views
Last Modified: 2013-11-13
I am using the Winsock component that comes with VB 5.0 to handle communications between a server and pc applications.  Eveything is working great except that when I close the connection from the client application, the Winsock_Close event never fires.  All of the other events (including the Connect event) seem to work fine.  Has anyone noticed this problem before, and if so, do you have a fix?
0
Comment
Question by:jsuper
2 Comments
 
LVL 2

Accepted Solution

by:
schild earned 100 total points
ID: 1443179
When you are closing a socket the other side recive a message with 0 lenght,
that's how you can know it

Good Luck
Schild
0
 
LVL 1

Author Comment

by:jsuper
ID: 1443180
Sure, I understand that, but what I really need is for the CLOSE event to actually be raised.  I'm trapping it using other methods right now, but the event would be a much cleaner solution.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question