GabiMe
GabiMe

Reputation: 18503

Google protobuf: Recommended C++ library to handle the communication?

Is there such framework or lib? That will take care of the client/server sockets parts too? Or just using something like BOOST::ASIO is the standard practice with protobuf?

Upvotes: 1

Views: 1820

Answers (3)

KukoBits
KukoBits

Reputation: 337

I use boost::asio and Poco::Net with protobuf, you dont need a specific framework or library to use a protobuf message, you dont even have to use a protobuf message just on network only, it creates binary version of that message that means you can transfer that binary data thorught network, store it on a file etc.

I would recommend to build your own protocol just for the sake of learning socket programming :-) using whatever socket library you want, winsock, boost::asio, Poco::Net, etc, Where boost::asio is the easier one using the async_ methods. I build a network framework in 5 hours (server/client) with multithreading capabilities

Again like many people said, boost::asio is the way to go, having an extra library just for something really simple (with boost) it's a waste.

Upvotes: 1

tlaitinen
tlaitinen

Reputation: 11

I had hard time finding such a framework, so I wrote some (TLS) socket wrappers and a simple protobuf message channel. The library is available at prototls.

Upvotes: 1

dmeister
dmeister

Reputation: 35654

I use ZeroMQ together with protobuf.

Upvotes: 5

Related Questions