| Reply | « Previous Thread | Next Thread » |
|
How to implement mod_python and raccoon webserver without a binary installation and running it from python?
|
|
Quote:
Mikko Ohtamaa Twinapex Research http://www.twinapex.com |
|
I need to execute it from python because the binary installation is only for s60 2nd Ed/ 3rd Ed.
Last edited by Anime : 2008-10-31 at 00:36.
|
|
You can't do that - Apache is C code and you'd need to rewrite the whole web server. Apache hosts Python, not other way around.
What you are looking for is "how to serve HTTP traffic from a PyS60 application" - am I right? Mikko Ohtamaa Twinapex Research http://www.twinapex.com |
|
I don't think is possible with the default modules.
|
|
Just open a socket and listen to it? Surely it is possible.
Mikko Ohtamaa Twinapex Research http://www.twinapex.com |
|
There isn't any example. Where to find it?
|
|
Read PyS60 API documentation how to open a socket for listening. Use generic Python documentation about how to read incoming requests for socket. Read HTTP specification about what kind of content is coming in. Parse HTTP response manually. Serve HTTP response manually. Because you are doing something for which other users seem to have no need, you need be able to apply generic knowledge.
With some luck gooling pys60 http socket listen bind or similar you can find something. Mikko Ohtamaa Twinapex Research http://www.twinapex.com |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |