Geoff Talvola <[EMAIL PROTECTED]> wrote:
[...]
> Except that on Windows you'll probably need to use CreateProcess instead of 
> system.  That right there argues for its inclusion in a library.

Okay, that's a good argument.  A C-based Webware Adapter Compatibility
Layer!  Hehe.

Anyway, I can imagine these functions in a library:

* mashalling
* opening a socket to the AppServer (with error codes)
* sending data on the socket, perhaps (if this is different on
  Windows), I suppose handling the socket in general.
* if it comes to exist: restart the AppServer (not a current feature,
  after all)
* reading address.text (even though mod_webkit doesn't do this)

C just isn't good at moving information around cleanly, so I don't
think the entire process of sending the transaction over the socket
can be put in the library.  Not if you are going to stream POST data
directly over the socket, for instance.  This was my first socket
programming exercise in C, and I don't do much C programming, so maybe
there's cleverness I'm missing.  But I don't think so.

  Ian

_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to