Skip to content

Sample client-server application using gRPC to flip an image

License

Notifications You must be signed in to change notification settings

heekinho/magic-mirror

Repository files navigation

magic-mirror

Sample client-server application using gRPC to flip an image

Instalation

To install gRPC on your system, follow the instructions to build from source here. This also installs the protocol buffer compiler protoc (if you don't have it already), and the C++ gRPC plugin for protoc.

Client and server implementations

The client implementation is at magic_mirror_client.cc.

The server implementation is at magic_mirror_server.cc.

Try it!

Build client and server:

$ make

Run the server, which will listen on port 50051:

$ ./magic_mirror_server

Run the client (in a different terminal):

$ ./magic_mirror_client lena.png output.png [--type (horizontal|vertical|both)]

If things go smoothly, the client will save a flipped grayscale image in the specified path.

Roadmap [v1.0.0]

  • Features
    • CMake support
    • Flatbuffers support

About

Sample client-server application using gRPC to flip an image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published