Jump to content

Recommended Posts

Dear all,

 

I would like to find out if and how can I build a module for the Apache web-server that would listen on a socket for signals coming from an external program, and would send some data to clients that requested a certain page.

So, for example:

10 clients request a push page from the Apache httpd server. 5 clients request Page A, 5 clients request Page B.

The connection to those clients is kept open.

A program on the same server has generated an event and it would like to send a notification to only those clients that requested Page B.

The program connects to the web-server via an httpd module that listens to a socket (UNIX/TCP).

The program then sends data to the module, which is then forwarded to all of those clients that requested Page B.

The connection to the module can be reused.

 

Does this look doable to you? Is there an alternative way of implementing this? (except connecting to the program directly).

 

Also, can anyone please point me to a good documentation of the Module API? I've been unable to find something consistent.

 

Thank you in advance!

Link to comment
https://forums.phpfreaks.com/topic/72172-custom-module-development/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.