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.)
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Friday, May 4, 2012
Scaling a chat app - short polling vs. long polling (AJAX, PHP)
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.
Friday, February 10, 2012
Using two private keys (keystore) and two public keys (truststore) in one SSL Socket Connection
I need to use to key-pair in one socket ssl connection without change nothing in clients.