Proto sandbox
basic_file_write_read
First example from the protobuf python doc.
- Encode and save to file.
- Read from file and decode.
bin
Protocol compiler.
hello_world_socket
Client sends an encoded message to the server over tcp. Server decodes the message and sends an encoded response.
py_generic_services
Client / server basic app with simple proto service. Used to measure python proto performance.
- Client sends encoded messages to the server.
- Server listens to incoming data on the socket and expects to 8-bit message size first and the message itself next (DataReceiver).
- Raw data is parsed to the protocol request and passed to the service using the protocol method descriptor (method index is hardcoded). The response is built (HelloIncomingRpcHandler).
- Service handles the message and call response callback (HelloService).
- Response is sent to the client.