Cpp c/c++ client to connect to eventstore

Hello, i was wondering what would be the best way to connect to an EventStore Instance from c++.

I’ve found this repo in github https://github.com/Q-Minh/EventStore.Client.Api.Cpp, which seems to be abandoned… I compiled successfully but when trying to run the examples they crash with a non descriptive error:

terminate called after throwing an instance of 'boost::wrapexcept<boost::system::system_error>'
  what():  Invalid argument
Aborted

Is there anyway for me to connect from c++?

Thanks

T

You can generate a C++ client using protoc with these protocol buffers https://github.com/EventStore/EventStore/tree/master/src/Protos/Grpc

If you don’t already know about using gRPC you can find out more here: https://developers.google.com/protocol-buffers/docs/cpptutorial

1 Like