2017 © Pedro Peláez
 

library beehive

An event-driven socket server powered by libevent.

image

danielmunro/beehive

An event-driven socket server powered by libevent.

  • Tuesday, July 16, 2013
  • by danielmunro
  • Repository
  • 1 Watchers
  • 5 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

beehive

Beehive is an event-driven socket server powered by libevent and implemented in PHP (requires libevent and PHP 5.4)., (*1)

how to run

telnet echo server

In one terminal, type:, (*2)

php examples/telnet.php, (*3)

Beehive will now be listening on 127.0.0.1:9000, (*4)

Open a new terminal, and type:, (*5)

telnet localhost 9000, (*6)

The server will echo any messages sent to it, (*7)

webchat web socket server

Copy examples/webchat/client.js and examples/webchat/index.html to the document root of a test server., (*8)

In one terminal, type:, (*9)

php examples/webchat/server.php, (*10)

Beehive will now be listening on 127.0.0.1:9000, (*11)

Open a browser window and navigate to your testing vhost, ie http://localhost/, (*12)

You should see a simple box with a text input beneath it. Open up multiple tabs to the "chat" and see as messages are shared realtime across clients., (*13)

The Versions

16/07 2013

dev-master

9999999-dev

An event-driven socket server powered by libevent.

  Sources   Download

by Dan Munro