会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
huoppo
博客园
首页
新随笔
联系
订阅
管理
2019年5月8日
微信小游戏利用nginx实现wss转ws的配置文件
摘要: 443端口为wss的固定端口,必须开放出来
阅读全文
posted @ 2019-05-08 09:54 huoppo
阅读(1948)
评论(0)
推荐(0)
编辑
2018年12月28日
通用服务器架构
摘要: 目前这套服务器架构如下: 1.每个服务器启动的时候都会向MasterServer 注册(上传自己的ip,port,servertype等) 2.MasterServer收到注册消息后广播该信息给连上它的所有服务器,同时给该连上的服务器发送所有服务器的列表 3.单点服务器收到列表后, 依据上面的 连接
阅读全文
posted @ 2018-12-28 10:24 huoppo
阅读(456)
评论(0)
推荐(0)
编辑
2018年12月7日
泊爷带你学go -- 经典的继承与接口 简直吊炸天 !
摘要: package main import ( "fmt" ) type TeamBase struct { m_TeamId uint64 m_Rid uint32 m_RoomRule uint32 m_Players []uint64 } type TeamInt interface { Init() CreateTeam(accountId uint64,...
阅读全文
posted @ 2018-12-07 17:04 huoppo
阅读(183)
评论(1)
推荐(0)
编辑
泊爷带你学go -- 反射的经典玩法
摘要: package main import ( "fmt" "reflect" ) type order struct { ordId int customerId int } func createQuery(q interface{}) { t := reflect.TypeOf(q) //----NB啊 if t.String() == "main.order" ...
阅读全文
posted @ 2018-12-07 15:38 huoppo
阅读(175)
评论(0)
推荐(0)
编辑
泊爷带你学go -- redis连接池的操作
摘要: package main import ( "common" "fmt" "proto" "strconv" "time" "github.com/garyburd/redigo/redis" "github.com/gogo/protobuf/proto" ) type RedisHelper struct { redisClie...
阅读全文
posted @ 2018-12-07 14:33 huoppo
阅读(1078)
评论(0)
推荐(0)
编辑
2017年9月7日
泊爷带你学go -- 加锁的问题
摘要: 以上代码说明如下问题,2个协程同时对一个对象指针变量进行读操作的时候需要进行加锁 那么不加有什么问题呢: 会出现打印出只有一个变量的情况
阅读全文
posted @ 2017-09-07 22:09 huoppo
阅读(1220)
评论(0)
推荐(0)
编辑
2016年12月1日
QT 定时器详解
摘要: 编译器 : Qt Creator 在窗口化类中实现定时器 .h
阅读全文
posted @ 2016-12-01 15:56 huoppo
阅读(5291)
评论(0)
推荐(0)
编辑
公告