disconnection

Is it possible to create an event and handle it, if the connection to a MySQL server is lost?

Let's say I have my client application and it makes a connection to the MySQL server. Fantastic. I don't implement this as a thread. I just utilise the MySQLConnection class. And now let's say Jim who's really careless about the office accidently reboots the MySQL server without asking permission first. I want to know when the disconne...

How to detect disconnection from a delay in a heartbeat function of a WCF service?

Hi, I am implementing a WCF client application, and wrapping to a WCF service. My wrapper class looks something like.. Class ServiceWrapper: IServiceCallBack{ // Some service funcions public void OnSendHeartBeat(HeartBeatInfo info) { // this call back is triggered every 3 seconds.. Timeout is 10 seconds ...

Socket connection between end points on the same machine

When two end points of a socket connection reside on the same machine (Wintel, in this case), do messages between each other traverse onto the NIC card, network medium, and then back to the NIC/machine, and finally to to the other end point? The reason I am asking is that we've been getting some unexplained socket disconnections reporte...

How to detect a Socket disconnection?

I've implemented a task using the async Sockets pattern in Silverlight 3. I started with Michael Schwarz's implementation and built on top of that. So basically, my Silverlight app establishes a persistent socket connection to a device and then data flows both ways as necessary between the device and the Silverlight app. One thing I a...

Disconnect a bluetooth socket in Android

Hi, I'm developing a program in which, from an Android Phone, I have to connect as a client to a Bluetooth medical sensor. I'm using the official Bluetooth API and no problem during connection (SPP profile), but when I end the socket, the sensor is still connected to my phone (although I have close the connection). Are there any way to...