Encryptor Posted October 7, 2007 Share Posted October 7, 2007 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! Quote Link to comment https://forums.phpfreaks.com/topic/72172-custom-module-development/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.