Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 763 Bytes

README.md

File metadata and controls

50 lines (35 loc) · 763 Bytes

LifeGamer_Comm

Communicated module of LifeGamer.

Setup

  • Install dependencies
# grpc
go get -u google.golang.org/grpc

# protobuf plugin
go get -u github.com/golang/protobuf/protoc-gen-go
  • Setup compiler plugin, protoc-gen-go
export PATH=$PATH:$GOPATH/bin

Compile protobuf

  • support category:
    • event
# compile event's pb
protoc -I proto/<category> proto/<category>/<spec>.proto --go_out=plugins=grpc:proto-<category>

Tool Set

  • src/tools:
    • protoc.exe: executable protobuf compiler for windows.

Server/Client

  • Server start first:
$ go run src/comm_engine.go
  • Then activate client:
$ go run test/dummy_client.go

Author