grpc/examples/pubsub
Nicolas Noble cfd6073a66 Various Windows fixes.
-) using dupenv_s instead of getenv_s and calling strdup ourselves.
-) few impossible-to-obtain if checks.
-) various signed/unsigned casting.
-) using time_t instead of time32_t
-) checking output of FormatMessage for failures.
-) don't redefine _WIN32_WINNT without undefining it first.
-) fixed msvc's interlocked casting.
-) renamed AddPort to AddListeningPort.
-) added protobuf's third_party includes to search path.
-) added a missing definition for inet_ntop in mingw32.
-) removed useless declarations.
2015-03-19 04:21:22 +01:00
..
README Update README 2015-02-25 11:45:05 -08:00
empty.proto Add missing new-lines at end of file 2015-02-18 09:25:21 -08:00
label.proto Add missing new-lines at end of file 2015-02-18 09:25:21 -08:00
main.cc Compile fix 2015-03-03 10:04:51 -08:00
publisher.cc Add missing new-lines at end of file 2015-02-18 09:23:38 -08:00
publisher.h Guard headers tool. 2015-03-01 06:18:14 +01:00
publisher_test.cc Various Windows fixes. 2015-03-19 04:21:22 +01:00
pubsub.proto clean up some internal path and names 2015-02-20 13:04:52 -08:00
subscriber.cc Add missing new-lines at end of file 2015-02-18 09:23:38 -08:00
subscriber.h Guard headers tool. 2015-03-01 06:18:14 +01:00
subscriber_test.cc Various Windows fixes. 2015-03-19 04:21:22 +01:00

README

Experimental example code, likely to change.
Users should not attempt to run this code till this warning is removed.

C++ Client implementation for Cloud Pub/Sub service
(https://developers.google.com/apis-explorer/#p/pubsub/v1beta1/).

"Google Cloud Pub/Sub" API needs to be enabled at
https://console.developers.google.com/project to open the access for a client. 
Select the project name, select the "APIs" under "APIs & auth", and turn
on "Google Cloud Pub/Sub" API. 

To run the client from Google Compute Engine (GCE), the GCE instance needs to
be created with scope "https://www.googleapis.com/auth/cloud-platform" as below:

gcloud compute instances create instance-name 
    --image debian-7 --scopes https://www.googleapis.com/auth/cloud-platform


To run the client:
make pubsub_client
bins/opt/pubsub_client --project_id="your project id"