I am working on a client-server program for the first time, and I feel extremely inadequate, where to start, what I do.
I am going to use Google Protocol Buffers to transfer binary data between my client and my server. I will use the Python variant. The main idea, as I understand it, is that the client will serialize the data, send it to the server, which then deserialize the data.
The problem is that I really don't know where to start sending binary data to the server. I was hoping it would be something “simple” like an HTTP request, but I searched Google for ways to transfer binary data and got lost in a huge number of tutorials, manuals and documentation. I can’t even tell if I creep up the wrong tree while exploring HTTP transfers (I was hoping to use it, so I could knock it down to the HTTPS mark if security is needed). I really don't want to go to the socket programming level, although I would like to use the available libraries before addressing this. (I would also prefer the standard Python libraries, although if there was a wonderful third-party library, I would live.)
So, if someone has a good starting point (or wants to explain for themselves) about how a good way to pass binary data through Python, I would be grateful. The server I'm running on is currently running Apache with mod_python, by the way.
Roger
source
share