A web based terminal emulator as an Apache module?

2015-01-09 Thread Sean Neeley
I'm trying to determine if it is plausible to build an apache module for a web based terminal emulator. I would be borrowing some of the code from the ShellInaBox project: https://code.google.com/p/shellinabox/ The code uses openpty() to create a new process operating in a pseudo-tty. The apache m

Re: A web based terminal emulator as an Apache module?

2015-01-09 Thread Joe Lewis
It is definitely possible to share information - see the apr_shm_* functions (or check the history on this list for shared memory). Eash POST request is considered a separate event, and is processed as such, which means there is no state in the protocol itself (there is when you add HTTP headers i

Re: A web based terminal emulator as an Apache module?

2015-01-09 Thread Joe Lewis
Here is a good example thread : http://grokbase.com/t/apache/modules-dev/11bp9bhxr5/basic-example-shared-memory-code On Fri, Jan 9, 2015 at 10:35 AM, Joe Lewis wrote: > It is definitely possible to share information - see the apr_shm_* > functions (or check the history on this list for shared m

Re: A web based terminal emulator as an Apache module?

2015-01-09 Thread Vikram Tiwari
One example is Google's implementation of SSH client to login into their Google Cloud's Compute instances. It uses GA based cookies for the authentication. Thanks and Regards! Vikram Tiwari On Fri, Jan 9, 2015 at 11:07 PM, Joe Lewis wrote: > Here

Re: A web based terminal emulator as an Apache module?

2015-01-09 Thread Sean Neeley
This is similar to what I need to build. Do you happen to know if it the ssh part is open source and if it was implemented using an apache module? On Fri, Jan 9, 2015 at 11:42 AM, Vikram Tiwari wrote: > One example is Google's implementation of SSH client to login into their > Google Cloud's Co

Re: A web based terminal emulator as an Apache module?

2015-01-09 Thread Sean Neeley
That is a good example showing how to share a simple counter value between processes. But how would you go about sharing a file descriptor between processes within an apache module? Am I right that if you store the file descriptor in the shared memory pool, that file descriptor value would not me