George Barnett 248f554e3c Support protobuf separately to `GRPCPayload` for the client (#889) il y a 5 ans
..
Client 8196439d23 Allow deadlines or timeouts to be set on RPCs (#842) il y a 5 ans
Model 248f554e3c Support protobuf separately to `GRPCPayload` for the client (#889) il y a 5 ans
Server 9a8d0239ad Add a server builder (#752) il y a 5 ans
README.md 0df475fe2e Add a RouteGuide example and tutorial (#598) il y a 6 ans
route_guide_db.json 0df475fe2e Add a RouteGuide example and tutorial (#598) il y a 6 ans

README.md

Route Guide - A sample gRPC Application

This directory contains the source and generated code for the gRPC "Route Guide" example.

The tutorial relating to this example can be found in grpc-swift/docs/basic-tutorial.md.

Running

To start the server, from the root of this package run:

$ swift run RouteGuideServer

Once the server has started it will print out the port is listening on. This must be passed to the client.

$ swift run RouteGuideClient <PORT>

Regenerating client and server code

For simplicity, a Makefile is provided in the root of this package with a target to generate client and server code:

$ make generate-route-guide