Solved

Winsock Close event not working.

Posted on 1998-11-04
2
251 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
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.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

729 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