I am fairly new to Linux, Python and web2py so I have given myself a project to help me learn - I'm aware its fairly ambitious as a first project!
I was involved in the design of a windows based system a while ago, and I would like to try and emulate its functionality on Linux. The original system consisted of a remote windows PC connected to an RS232 serial device. A local windows PC ran a c# .NET web service which communicated with the remote via raw TCP over PPP. An IIS web server running on the local PC provided a GUI to the web service via WSGL and SOAP. The PPP link is a very slow dial-up service so the purpose of the system was to send very small strings to the remote. The remote could then look up the small string in a database and issue the full serial command to the device. The system is only deployed on closed networks so performance and security isn't a high priority. Back to my Linux project... I have a working PPP link, I have web2py installed on apache2 with mod_wsgi and postgresql. Basically what I need is a TCP socket server with some python code, and a way of talking to this from web2py. I'm not fully aware of what functionality my Linux setup gives me so I would really like some advice. #. Can I implement a raw TCP socket server with apache? If so, how can I pass the data to web2py/python? #. If I need to create a python TCP socket service (instead of using apache), how do I communicate with it from web2py? #. I would like to avoid WSGL / SOAP if possible I know a lot of my questions arent relating specifically to web2py but I would be grateful for any support. Thanks, Sam