Questions tagged [disconnect]

A break or interruption in an existing connection, continuum, or process.

A break or interruption in an existing connection, continuum, or process. This can include:

  • Ending a connection to a server
  • Ending a connection to internet
  • Terminating operating system services
  • Removing event handlers from an object
403 questions
7
votes
1 answer

Android InputStream Internet Disconnect

In my Android program, I have some code that downloads a file. This works fine, but since on a cell phone, you can be disconnected at any time, I need to change it do it reconnects and resumes the download when you are halfway through and somebody…
Isaac Waller
  • 32,709
  • 29
  • 96
  • 107
7
votes
4 answers

DBI: disconnect - question

Would you call parts of the disconnect-code as line-noise or would you leave it as it is? use DBI; my $dbh = DBI->connect ... ... ... END { $dbh->disconnect or die $DBI::errstr if $dbh; }
sid_com
  • 24,137
  • 26
  • 96
  • 187
7
votes
0 answers

How to retrieve disconnect cause of android call?

I have registered a broadcast receiver for PHONE_STATE so whenever a call is disconnected I can execute code. I am trying to find the cause of the disconnection which I believe it can be found by calling Call.Details.getDisconnectCause. The problem…
Hamed
  • 297
  • 3
  • 21
7
votes
2 answers

Socket.io send disconnect event with parameter

I want to send disconnect event manually with custom parameter to socket.io server. I use this function but won't work: //client var userId = 23; socket.disconnect(user); //Server socket.on('disconnect', function (data) { …
Ehsan Ali
  • 1,362
  • 5
  • 25
  • 51
7
votes
2 answers

Is it possible to disconnect all slots from a signal in Qt5 QML?

In QML it is impossible to call .disconnect() without arguments for a signal: file:mainwindow.qml:107: Error: Function.prototype.disconnect: no arguments given So how can I disconnect ALL slots without specifying each of them? Or maybe it is…
VP.
  • 15,509
  • 17
  • 91
  • 161
6
votes
1 answer

How to disconnect an anonymous event?

Possible Duplicate: How do I Unregister 'anonymous' event handler I have code like this: Binding bndTitle = this.DataBindings.Add("Text", obj, "Title"); bndTitle.Format += (sender, e) => { e.Value = "asdf" +…
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
6
votes
2 answers

How to drop inactive/disconnected peers in ZMQ

I have a client/server setup in which clients send a single request message to the server and gets a bunch of data messages back. The server is implemented using a ROUTER socket and the clients using a DEALER. The communication is asynchronous. The…
Carl Larsson
  • 61
  • 1
  • 3
5
votes
2 answers

SignalR: client disconnection

How does the SignalR handle client disconnection? Am I right if I state the following? SignalR will detect browser page close/refresh via Javascript event handling and will send appropriate packet to server (through the persisting…
pavel.baravik
  • 689
  • 1
  • 11
  • 21
5
votes
5 answers

How to detect USB device disconnect under Linux/Qt/C++

I'm writing a system (X-Platform Windows/Linux) that talks to a custom device using an FTDI USB chip. I use their D2XX driver for device open/close/read/write. So far, so good. I need to know when the device is disconnected so the program can…
Judy Duncan
5
votes
2 answers

writing over a disconnected socket does not throw

the writer: socket.setSendBufferSize(1); socket.setTcpNoDelay(true); writer = new BufferedWriter( new OutputStreamWriter(socket.getOutputStream(), "UTF-8")); is used as follows: try { writer.write(packet.toXML()); …
kellogs
  • 2,837
  • 3
  • 38
  • 51
5
votes
2 answers

properly disconnect multiprocessing remote manager

When using multiprocessing Manager objects to create a server and connect remotely to that server, the client needs to maintain a connection to the remote server. If the server goes away before the client shuts down, the client will try to connect…
underrun
  • 6,713
  • 2
  • 41
  • 53
5
votes
4 answers

Why google cloud shell auto disconnect after 1 hours

I use Google Cloud Shell to run Jupyter Notebook on instance , but after 1 hours,the connection is disconnect. And I reconnect to instance, there is nothing, is same as reset instance. So, please tell me how to set up ,make the connection of cloud…
hiyoung liu
  • 53
  • 1
  • 3
5
votes
1 answer

how to ice restart?

I am developing a voice chatting app based on webRTC using android libjingle.I want to reconnect users by using ice restart when they change their network from wifi to 4g or vice versa, or are disconnected. I have a question about implementing it by…
Hiroo
  • 125
  • 2
  • 7
5
votes
1 answer

How to detect client disconnection from node.js server

I am new to node.js. How to detect client is disconnected from node.js server . Here is my code: var net = require('net'); var http = require('http'); var host = '192.168.1.77'; var port = 12345;// var server = net.createServer(function (stream)…
5
votes
5 answers

How to detect when a user leaves the site?

I was reading this question: Trying to detect browser close event But it's not comprehensive enough, or at least I'm not sure it is, I need to detect when the user leaves the website, this could be: internet died PC shuts down (power outage for…
Artemix
  • 8,497
  • 14
  • 48
  • 75
1 2
3
26 27