Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 719 Bytes

File metadata and controls

48 lines (38 loc) · 719 Bytes

SocketServer-Example

SocketServer-Example written in golang.
Socket server has main-loop like MMO server.

Installation

Multi-platform support

  • Windows
  • Mac OS X
  • Linux

Requirements

Build server and client

Download dependencies

$ dep ensure

Build Server

$ cd examples/server
$ go build main.go

Build Client

$ cd examples/client
$ go build main.go

Run server and client

Run server

$ SOCKET_SERVER_HOST=0.0.0.0 SOCKET_SERVER_PORT=11111 ./main

Run client

$ SOCKET_SERVER_CONNECT_HOST=localhost SOCKET_SERVER_CONNECT_PORT=11111 ./main

Credits

neko-neko

License

MIT