Showing posts with label sockets. Show all posts
Showing posts with label sockets. Show all posts

Friday, May 4, 2012

Scaling a chat app - short polling vs. long polling (AJAX, PHP)


I run a website where users can chat with each other through the browser (think Facebook chat). What is the best way to handle the live interaction? (Right now I have a poll going every 30 seconds to update online users and new incoming messages, and another poll going on chat pages every second to get new messages.)

Tuesday, February 28, 2012

Socket communication between server and client using threads [closed]


I am busy with a project where the client Gui sends user and password details to a server where the details needs to be verified Sever side against the data in the database on the server. We are required to use Threads(from what I understand is that the Server needs to be able to handle multiple requests).

Friday, February 24, 2012

Error Domain=NSPOSIXErrorDomain Code=61 "The operation couldn\u2019t be completed. Connection refused”


I am using asyncSocket as client side, aim running my application on I-Phone simulator, and the server side coded with C#. its working perfectly if i try to connect with a server on my LAN but the connection refused with the server out of my LAN.

Thursday, February 16, 2012

Implementation of long polling connection iPhone application with PHP backend


I would like to learn how you can implement a permanent connection (such as client WebSocket + phpDeamon) but only with the native iPhone / iPad application.