I think you probably want to use an RPC framework such as gRPC <https://grpc.io/> which will handle all this for you.
On Sun, Feb 26, 2023 at 9:14 AM Sumit Patil <[email protected]> wrote: > Note - lang = CPP > > On Sunday, 26 February, 2023 at 10:38:40 pm UTC+5:30 Sumit Patil wrote: > >> Hii everyone, >> I am trying to use google proto to transfer data from client to server >> and vice versa. >> I am not getting, how I can implement such thing. >> I am thinking of these steps: >> * Client >> 1. Set proto message's fields >> 2. Serialize to byte array >> 3. encrypt >> 4. Send from client >> >> * Server >> 1. Decrypt >> 2. Deserialize >> 3. Print message >> >> Is this process correct and if yes can you suggest >> functions/implementations to do that. >> I suppose for client step2 I can use SerializeToArray, but how can I >> encrypt it? >> Also is it possible to compress that data, I mean will it work in >> protobuff? >> > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/protobuf/66045341-82d4-4fc6-af1a-7485457c0849n%40googlegroups.com > <https://groups.google.com/d/msgid/protobuf/66045341-82d4-4fc6-af1a-7485457c0849n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/CADqAXr7eoz9q6%2B-eDE5SXU7Jbo6f%2BK5Yob-GZdzbbhbfSC01cw%40mail.gmail.com.
