asynchronous

Asynchronous Observer Pattern.

Hi guys, I wanted to find out other ways to do Asynchronous Observer Pattern without using Message Queue. Ideas and examples are mostly welcomed. :-) (Think of this as a brainstorming session). PS Language preference is up to you. ...

How to use Dispatcher with async call in WP7?

I haven't been able to find an example like this, though I'm sure there must be a few out there. When the user clicks a button to log in, an event handler on the button click calls a function that logs the user in. Based on the user, they can be taken to one of many start screens. The information for which screen is returned from a serv...

Designing a message processing based system

I need recommendations, design input, references to similar systems or anything that will help in building the system below. I have been assigned to design a message processing based system. The over all architecture is as follows. We have i) Client ii) Server iii) Data Collectors - Services that gather data from the internet...

SQLDataReader Asynchronous Callback question

Hi I need some advice as to whether what I am trying to acheive is even possible. I have code which is basically SqlDataReader sourceDataReader = dbFunctions.getDataReader(<..some parameters..>) while (sourceDataReader.Read()) { ..... Do some stuff ..... // Write out record dbFun...

Error Redirect for Ajax Froms in asp.net mvc2

I'm building an asp.net mvc2 website and using a lot of ajax form elementes (Ajax.BeginForm to be exact) to asynchronously populate data on the page. I would like to redirect the user to the sign in page after x amount of time of inactivity on the site. When I do this currently, either through ActionExecutingContext, or HttpContext, the ...

Calling a webservice async

Long post.. sorry I've been reading up on this and tried back and forth with different solutions for a couple of days now but I can't find the most obvious choice for my predicament. About my situation; I am presenting to the user a page that will contain a couple of different repeaters showing some info based on the result from a coup...

WebRequest- retrieving data asynchronously for multiple requests

The code is not complete (It does not build), as I am not able to get the "item" in the following line in the WriteResponseData(). HttpWebResponse WebResp = (HttpWebResponse)item.EndGetResponse(result); I must be missing something. Please point out. below is the complete code:- static string[] imageUris = { "http://www.crici...

Unable to follow a location (URL) using cURL when open_basedir is set - API callback failing

Existing method of posting values to API As per the API documentation, a form has to be posted to the API URL (method="POST" and action="API_URL") with some input fields and a customer token field. The API processes and then posts response to a callback.php file on my server (fixed - can't change it). The page redirects to the API URL an...

SerialPort.BaseStream.BeginWrite & BeginRead questions

I'm having some issues trying to figure out Async communication on a serialport object and was hoping to get some help. I'm still learning Async stuff so be gentle:)    I basically need to make sure that the buffer isn't full prior to writing to the serial port and also all data has been read before any more data gets written to avoid ...

Asynchronous socket, forced disconnection and reuse

Im writing an application which is going to act as a tcp listener for a single client. The client is a java applet and will periodically connect to the listener, send some data and then wait for a response. The code for the TcpServer class below has been largely lifted from an example provided by a more knowledgeable stackoverflow membe...

How to download a file through a http Asynchronous Pluggable Protocol ?

I write a temp http protocol and the Code is as follow, it works well for web pages navigating, but cannot for file download, such as http://**/111.zip . How to modify the code ? Envrionment: .Net 2.0, VS2008, C# public void Start(string szURL, IInternetProtocolSink Sink, IInternetBindInfo pOIBindInfo, uint grfPI, uint dwReserved) ...

Asynchronous COM C++ calls

Following up from part of this question, what is the best way to have a worker thread that invokes a COM procedure in a DLL, to do this asynchronously so that the worker thread is not blocked on this call? Note that a call to this COM DLL can take a long time as it will do DB accesses and possible run long running queries. I wondered i...

Python Twisted: "wait" for a variable to be filled by another event

Hi Guys! I know that twisted will not "wait"... I am working with an XMPP client to exchange data with an external process. I send an request and need to fetch the corresponding answer. I use a sendMessage to send my request to the server. When the server answers a onMessage method will receive it and check if it an answer to a request ...

Silverlight Async Method Chaining (Possible gotchas?)

I am working on a 'proof of concept' Silverlight 4 project and am learning the way of THE ASYNC. I have stopped fighting the urge to implement some pseudo-synchronous smoke and mirrors technique. I am going to learn to stop worrying and love THE ASYNC. Most of the time I just use a BusyIndicator while async methods are running and all...

How to listen for a variable change in Javascript?

I've been messing around with using Node.js and CouchDB. What I want to be able to do is make a db call within an object. Here is the scenario that I am looking at right now: var foo = new function(){ this.bar = null; var bar; calltoDb( ... , function(){ // what i want to do: // this.bar = dbResponse.bar; ...

What happens if an application calls more than 10 asynchronous URL Fetch on Google App Engine ?

Reading the Google App Engine documentation on asynchronous URL Fetch: The app can have up to 10 simultaneous asynchronous URL Fetch calls What happens if an application calls more than 10 async fetch at a time? Does Google App Engine raise an exception or simply queue the remain calls waiting to serve them? ...

Framework for iPhone / iOS asynchronous multiplayer gaming?

I'm curious if anyone knows of any frameworks that enable asynchronous multiplayer gaming in iOS? I know GameKit/Game Center eases synchronous (realtime) multiplayer gaming - I'm thinking of something more like Words With Friends. There would obviously need to be a server-side element that I'd have to provide, to store game state and s...

Creating a Non-Blocking Process in an MVC 2 Application

I'm faced with setting up a system which will allow users to: Hit a button to initialize a "download & archive" command, which reads file lists via XML, pulls files over HTTP to a local directory, archives them, and stores them away for download. Get a progress bar/indicator telling them their "request is being processed" immediately a...

jquery async treeview collapse problem

I am using async jquery treeview to build a tree. The treeview is populated based on the selection of dropdown list(select input). Everything works fine for the first time of treeview load. When the select option is changed and the treeview is built then the nodes expand but do not collapse. Has any one got such a problem. I would be th...

Windows Phone 7 - controls content and async request

I think this is trivial, but I cannot find the answer :( I have a WP7 page that hosts some controls that I want to populate with date read from a web request. The web request is done with: WebClient wr = new WebClient(); wr.DownloadStringCompleted += new DownloadStringCompletedEventHandler(Event_DownloadStringCompleted);...