handle datastreaming with Ajax
Link |
by Atsuku(binku)
on 2009-08-01 18:19:39 (edited 2009-08-01 18:20:41)
|
Anybody know about the concept. In my task is datastream from socket, catch by php first. Anybody have a learning link for it? The task is how to detect a new(update) data line/record from current listening socket and do process to handle it quickly. The simple concept is check per maybe 1/2 second or 1 second. But it would be bad in slow computer. I heard ASP as SS had a system for react based on change/update on data that streamed. Maybe php has it now? Or simply Ajax only? Sorry for my bad english, tq for take a concern. |
Re: handle datastreaming with Ajax
Link |
by
on 2009-08-03 16:23:56 (edited 2009-08-04 03:03:58)
|
AJAX relies on the XML HTTP Request object, which does NOT handle persistent connections. You can implement a service, like a chat room, by polling with an XML HTTP Request over and over, but that's very wasteful of resources like CPU and bandwidth. For persistent connections, you can use Flash, Java, a custom embedded object plug-in, or a stand-alone application. That's the deal, client side. Server side, you can do whatever you like! In fact, I use PHP sockets for my chat server. |
Re: handle datastreaming with Ajax
Link |
by Atsuku(binku)
on 2009-08-06 00:19:18
|
My workspace is in LAN actually. Yeah i'll give it more try, a best and efficient way to do : "There's a something new in our socket! Catch it! Nothing new.., rest your self". Thx for the words and links! |