Live Chat via PHP and Gaim

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • googlemike@hotpop.com

    Live Chat via PHP and Gaim

    Is there a way I can bring up an entirely PHP-based service on my
    intranet and then connect to it with Gaim, such as building an AOL IM
    service clone in PHP, or perhaps a Jabber service in PHP?

  • Chung Leong

    #2
    Re: Live Chat via PHP and Gaim

    <googlemike@hot pop.com> wrote in message
    news:1106245647 .624347.184690@ z14g2000cwz.goo glegroups.com.. .[color=blue]
    > Is there a way I can bring up an entirely PHP-based service on my
    > intranet and then connect to it with Gaim, such as building an AOL IM
    > service clone in PHP, or perhaps a Jabber service in PHP?
    >[/color]

    Possible, but probably not doable. IM protocols are usually UDP based. You'd
    have to implement the server in PHP, doing all the low level networking
    exchange yourself. As PHP is not well suited for such things, the result
    would likely be highly unstable, crashing your server every hours or so.


    Comment

    • googlemike@hotpop.com

      #3
      Re: Live Chat via PHP and Gaim

      Yeah, unless someone has already spent the time on this, I'd probably
      be better off making the service as simple as I could, using the UDP
      protocol and the socket API, with a primary knock-knock port and a
      range of one-on-one ports for clients, and then rolling this out as an
      open specification on SourceForge. Perhaps then someone on the Gaim
      team would look at this and consider adding a plug-in agent for it in
      Gaim. (I think those plug-ins are built in C++, and I don't know how
      to do that as fast as other people do.)

      It wouldn't be suitable for heavy load, that is correct, but it could
      handle small loads. It would also have to monitor itself, restart
      itself, or do other maintenance if it were to get hung up or slow to a
      crawl.

      Later on, someone could take the PHP code and rebuild it in Gnu C++ to
      make it more stable and able to handle higher loads. That's the cool
      thing about SourceForge projects on the Creative License (if that's
      what one uses). Stuff like that happens.

      Comment

      Working...