Solved

Winsock Close event not working.

Posted on 1998-11-04
2
244 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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.
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 …

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now