RE: [PHP-GTK] listening to socket

From: Date: Tue, 17 Jul 2001 13:38:05 +0000
Subject: RE: [PHP-GTK] listening to socket
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-2235@lists.php.net to get a copy of this message
Yes, I've heard of jabber, but I would like to make one entirely in GTK & PHP if possible...can GTK do this? I can't figure out how to make it "listen" to the external socket for an instant message, and to be able to receive it. I would be using a server in between...just like ICQ does...but in ICQ once the two people start sending messages, they do it directly without the server in the middle. I already have an HTTP type messaging system, but it requires it to keep refreshing at a fast rate to check the server for updates. I'm beginning to think it's not possible to do this with GTK & PHP. Thanks, Robert -----Original Message----- From: Tarique Sani <tarique@nagpur.dot.net.in> [mailto:root@sanisoft.com] Sent: Monday, July 16, 2001 11:08 PM To: Robert Abbate Cc: php-gtk@lists.php.net Subject: Re: [PHP-GTK] listening to socket On Mon, 16 Jul 2001, Robert Abbate wrote: > In essence, I am trying to create an instant messaging system using GTK. > Anyone have any ideas to get GTK to be able to receive a text page, and > alert the user? Ah! I did not read this before I fired off my previous mail. For instant messaging have you considered using Jabber from www.Jabber.org Works cools and it even has a PHP extension which you can use jPHP for text based chat. If you cant use jabber then the best bet is to use HTTP remember if you want real peer to peer messaging then you will have to run your own message server along with the client. Otherwise the hack is to keep a web server as a middle tier and poll it every N seconds. Not very elegant but works OK in real life situations. Tarique -- ========================================= B2B Application Providers http://www.sanisoft.com Vortal for Nagpur http://nagpurcity.net =========================================

« previous php.gtk (#2235) next »