Coder Social home page Coder Social logo

ants's Introduction

ants(轻量级框架)

----------begin-----------

[一些你能用到的实用的lib]

go get golang.org/x/sys/unix

go get github.com/shirou/gopsutil

go get github.com/garyburd/redigo

go get github.com/go-sql-driver/mysql

----------end--------------

##测试服务器

1,直接运行sh make.sh启动服务器(gate, chat, logon, world, game)

2,game模块在开发阶段,请自行注销(在目录app/server/launch.go里面)

###客户端测试(i表示任意数字 +表示空格)

1,打开终端进入该目录,输入; go run main.go test+i

2,go run main.go cli 启动后输入:

in+i(链接一个用户)

on(查看在线人数)

out+i(踢出一个链接)

all(给所有用户发消息)

#解决uid随机方案 http://blog.csdn.net/longjef/article/details/53117354

ants's People

Contributors

mikefortouch avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.