Re: Protocol converter module

2012-06-06 Thread Sorin Manolache
On 2012-06-05 20:39, Robert Mitschke wrote: The Alternative would be to have all blocking on the Same pipe. For each connection Handler I want to wake up I make a Note in shared mem then write a Single Byte to the pipe causing all blocking threads to wake up. These will Check in the shared mem w

Re: Protocol converter module

2012-06-05 Thread Robert Mitschke
I hads two ideas how to overcome this problem. One would be to create a pipe for each possible concurrent connection and maintain a registry which pipe is used by which thread in shared Memory. As pipes are not expensive I believe it would be feasible. The external request Handler would then look u

Re: Protocol converter module

2012-06-05 Thread Sorin Manolache
On 2012-06-05 13:47, Robert Mitschke wrote: Dear Sorin, again thanks for your valuable response. The architecture is now clearing up in my head which makes me a happier man after days of reading Apache code (which in turn is a valuable and interesting exercise by itself). I see a problem with

Re: Protocol converter module

2012-06-05 Thread Sorin Manolache
On 2012-06-05 13:47, Robert Mitschke wrote: How do I go about implementing this select. I have searched through the code but could not find out a way to actually get a handle to the socket. In the code all that is handled are network buckets. How would I gain access to the socket handle in proces

Re: Protocol converter module

2012-06-05 Thread Robert Mitschke
Dear Sorin, again thanks for your valuable response. The architecture is now clearing up in my head which makes me a happier man after days of reading Apache code (which in turn is a valuable and interesting exercise by itself). >> Doing >> it as a protocol handler I guess does work. In the prot

Re: Protocol converter module

2012-06-05 Thread Sorin Manolache
On 2012-06-05 10:09, Robert Mitschke wrote: Dear Sorin, thank you very much for your thoughts and shared experience on this. Doing it as a protocol handler I guess does work. In the protocol handler I could then still call the hook for processing a http request that I am creating based on my pro

Re: Protocol converter module

2012-06-05 Thread Robert Mitschke
Dear Sorin, thank you very much for your thoughts and shared experience on this. Doing it as a protocol handler I guess does work. In the protocol handler I could then still call the hook for processing a http request that I am creating based on my proprietary protocol right? I have also thought

Re: Protocol converter module

2012-06-05 Thread Sorin Manolache
On 2012-06-04 18:40, Robert Mitschke wrote: Hi everybody, I am attempting to write a module that implements a binary protocol that is not http and is not fully request and response based using apache. I have looked at mode echo and some others and I have Nick Kew's book. I want my module to con