Skip to content

toolbuddy/LifeGamer_Comm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages