markity
markity
对zinx/examples/zinx_server中的main.go文件中的main函数小小地修改,如下 ``` // zinx/examples/zinx_server/main.go func main() { //创建一个server句柄 s := znet.NewServer() //注册链接hook回调函数 s.SetOnConnStart(DoConnectionBegin) s.SetOnConnStop(DoConnectionLost) //配置路由 s.AddRouter(0, &zrouter.PingRouter{}) s.AddRouter(1, &zrouter.HelloZinxRouter{}) //开启服务 s.Start() time.Sleep(time.Second * 10) s.Stop() time.Sleep(time.Second * 10) s.Serve() }...
写了一个demo, 用于校验payjs响应的签名, 适用于各种复杂的数据类型, 你看着改 ```go package main import ( "crypto/md5" "encoding/json" "fmt" "sort" "strings" "time" ) var jsonStr = ` { "name":"Markity", "age":16, "child":null, "interests":["python","golang"], "friends":[ {"name":"Jack","age":17,"interests":["lua"]}, {"name":"Mary","age":15,"interests":["java"]} ], "compary":...
我在实现vpn时也遇到了类似的问题,conn.read报message too long,然而buffer是足够的,请问您解决了吗。
## Proposal Overview & Motivation I want open im server support Multi-device Login. ## Detailed Design I noticed that a new login will make msg_gateway kicks all other long links(all...