最近发布的主题
- Go问与答 Jason 的键值对传入空值的数字是不是应该写 null(例如 num:null),如果什么都不写符合 Jason 规范... at
- Go问与答 求助:解析Jason键值对值为空时报错:Json UnmarshalError: invalid character '... at
- 协议 请高手帮忙分析wireshark抓包出现的双向重传(一侧dup ack,双向都TCP Out-Of-Order)和发送包... at
- Go问与答 【求推荐】请大神推荐稳定的golang开源TCP服务端框架,生产环境访问量每秒一两百,自己写的一个连接协程挂了整个程序也... at
- Go问与答 【请教】源码编译安装golang问题,Solaris5.10和HPUXB.11.31运行./all.bash后报错"fu... at
最近发布的文章
暂无
最近分享的资源
暂无
最近发布的项目
暂无
最近的评论
-
谢谢 dong-hao, 我马上试试
-
谢谢 ququ1002 提供思路。 试了,报这个错 request info:{"serialno":"10001","command":"UserQueryByNATIP","natip":"20.1.18.97","userport":""} QueryByNATIP::reqparse Json UnmarshalError: json: cannot unmarshal string into Go value of type int 估计是定义问题,还有转换一下空值的定义: // request packet struct for query by natip and port type QueryByNATIP struct { Serialno string `json:"serialno"` Command string `json:"command"` Natip string `json:"natip"` Userport int `json:"userport"` }
-
谢谢channel回复,编译环境不在我这里,我试试编译gccgo
-
谢谢 abin的回复
-
不加\n收不到数据 2017年09月26日 14:10:17 <LL_INFO> Data sent:hnd {1}Total sent 7bytes. 2017年09月26日 14:10:17 <LL_INFO> Data sent finished, begin to recv... 2017年09月26日 14:10:20 <LL_INFO> 4_post_log, err and numRecv: read tcp 127.0.0.1:35623->127.0.0.1:12345: i/o timeout . numRecv: 0 2017年09月26日 14:10:23 <LL_INFO> recv data: