Questions tagged [polling]

Polling is actively sampling the status of an external device by a client program as a synchronous activity.

Polling is actively sampling the status of an external device by a client program as a synchronous activity.

Reference:

1451 questions
8
votes
7 answers

Getting historical data from Twitter

For a research project I would like to get the last 3 months worth of Twitter messages. Technical challenges aside, is this possible? by using some sort of slow polling mechanism to keep the rate limiter at bay? The Twitter API states "Clients may…
Marco
  • 2,463
  • 3
  • 23
  • 20
8
votes
2 answers

iOS: PUSH Notifications As A "Trigger" for Webservice Polling?

I'm just starting out learning OBJ-C but I do have an end-goal app that I'm working toward building; this app will be a master/detail app on the iPad that will be required to keep itself updated with a webservice in "real time". It will also need to…
AJB
  • 7,389
  • 14
  • 57
  • 88
8
votes
1 answer

MaxSessionsPerAddress issue when using WCF PollingDuplex and Silverlight client

WCF Trace logs shows many "The server has hit a PollingDuplex throttle, MaxSessionsPerAddress, and cannot accept another session from this client. An http error was returned" errors. Can't find enough details about MaxSessionsPerAddress settings,…
sll
  • 61,540
  • 22
  • 104
  • 156
7
votes
6 answers

What's the best way to ping many network devices in parallel?

I poll a lot of devices in network (more than 300) by iterative ping. The program polls the devices sequentially, so it's slow. I'd like to enhance the speed of polling. There some ways to do this in Delphi 7: Each device has a thread doing ping.…
Dr.eel
  • 1,837
  • 3
  • 18
  • 28
7
votes
5 answers

Time remaining on a select() call

I'm using select() on a Linux/ARM platform to see if a udp socket has received a packet. I'd like to know how much time was remaining in the select call if it returns before the timeout (having detected a packet). Something along the lines of: int…
Jamie
  • 7,075
  • 12
  • 56
  • 86
7
votes
7 answers

What's the fastest way to poll a MySQL table for new rows?

My application needs to poll a MySQL database for new rows. Every time new rows are added, they should be retrieved. I was thinking of creating a trigger to place references to new rows on a separate table. The original table has over 300,000…
HyderA
  • 20,651
  • 42
  • 112
  • 180
7
votes
2 answers

socket.io keeps constantly trying to use polling on wrong address

Hei, i am trying to use socket.io with cross domains. For example lets say domains are: https://client.domain.com and https://server.domain.com. My client side code looks like this: socket =…
hs2d
  • 6,027
  • 24
  • 64
  • 103
7
votes
2 answers

Android: Polling a server with Retrofit

I'm building a 2 Player game on Android. The game works turnwise, so player 1 waits until player 2 made his input and vice versa. I have a webserver where I run an API with the Slim Framework. On the clients I use Retrofit. So on the clients I would…
mrp
  • 689
  • 1
  • 8
  • 17
7
votes
21 answers

How to display loading percentage and how to do it without javascript?

I want to make something similar to loaders in PHP so I used this code: "; $x++; } ?> So that it would display from "Loading 1%" to "Loading 100%". But this will result in all appearing…
Marwan Ossama
  • 345
  • 1
  • 6
  • 12
7
votes
2 answers

Message queues in ASP.Net Web API

I am developing a client-side single-page-application (SPA) with AngularJS and ASP.Net WebAPI. One of the features of the SPA includes uploading large CSV file, processing it on the server, and returning the output to the user. Obviously, this kind…
Uri Goren
  • 13,386
  • 6
  • 58
  • 110
7
votes
2 answers

How to prevent PrimeFaces poll from clearing FacesMessages?

I'm using PrimeFaces poll component to refresh some content. ... ... content to refresh ...
RueKow
  • 193
  • 3
  • 10
7
votes
2 answers

WCF Silverlight client getting 404 not found response for poll message

Eventually WCF duplex Silverlight 4 client start getting 404 Not Found errors for poll messages, immediately after poll was send from WCF service to Silverlight client, sometimes this happens for second poll sometimes connectivity works hours or…
sll
  • 61,540
  • 22
  • 104
  • 156
7
votes
1 answer

Elegant way to add/remove descriptors to/from poll

I have to handle around 1000 descriptors in one poll (I can't use epoll as it's Linux specific) and I have to be able to dynamically add/remove them(handle new connections and remove closed). This means I should recombine the descriptors array on…
Shamdor
  • 3,019
  • 5
  • 22
  • 25
7
votes
5 answers

Polling vs Interrupt

I have a basic doubt regarding interrupts. Imagine a computer that does not have any interrupts, so in order for it to do I/O the CPU will have to poll* the keyboard for a key press, the mouse for a click etc at regular intervals. Now if it has…
Pratt
  • 851
  • 2
  • 10
  • 16
6
votes
3 answers

Android - Sockets vs Polling

As part of an Android app I'm developing there is a chat room feature. We have a server which can process the incoming messages and store the messages. Is it better to keep a socket connection open between the phone and the server so the server can…
Jonny
  • 97
  • 2
  • 6