Solved

Winsock Close event not working.

Posted on 1998-11-04
2
250 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
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.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

733 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