base on tcp socket server api framework written by golang
-
install go env, set the $GOPATH
-
go get github.com/Unknwon/goconfig go get github.com/go-sql-driver/mysql go get github.com/go-xorm/xorm go get github.com/garyburd/redigo/redis
-
use the sql.sql to create the table
-
start the redis server
-
download the gametcp_ex and unzip it,then go run main.go, then you can write your own client code th connect the tcp server
-
there are had client.go,clietn.py and client.php to show how to write client code, take a look at them