Solved

detecting disconnection of Winsock control in Visual basic

Posted on 2003-11-21
5
246 Views
Last Modified: 2013-11-13
I have been using wisock control for soemtime but I have discovered that there exists a problem . If you have a client winsock that is connected to a remote server, then you remove the network connection the client will still show that it is connected. Is there a way I can be able to detect that the connection does not exist, such that I can display the real status of the connection.
0
Comment
Question by:albertkimani
[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
5 Comments
 
LVL 22

Accepted Solution

by:
cookre earned 50 total points
ID: 9797227
Just imagine how much more traffic there would be if every X time interval every connected port in the world asked the other end if they were still there!

It's up to you to decide a timeout for your connections.

0
 
LVL 1

Expert Comment

by:anaadoul
ID: 9800591
use Winsock1_Close Event

Private Sub Winsock1_Close()
   Winsock1.Close
End Sub

hope it help
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?

749 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