go 实现多人聊天系统测试

一 注册测试

1 服务端输出

服务器在8889端口监听......

等待客户端来链接服务器......

等待客户端来链接服务器......

读取客户端发送的数据...

mes= &{RegisterMes {"user":{"userId":100,"userPwd":"123456","userName":"cakin1","userStatus":0,"sex":""}}}

读取客户端发送的数据...

readPkg err= read tcp [::1]:8889->[::1]:61077: wsarecv: An existing connection was forcibly closed by the remote host.

客户端和服务器通讯错误=err read tcp [::1]:8889->[::1]:61077: wsarecv: An existing connection was forcibly closed by the remote host.

等待客户端来链接服务器......

读取客户端发送的数据...

mes= &{RegisterMes {"user":{"userId":200,"userPwd":"123456","userName":"cakin2","userStatus":0,"sex":""}}}

读取客户端发送的数据...

readPkg err= read tcp [::1]:8889->[::1]:57249: wsarecv: An existing connection was forcibly closed by the remote host.

客户端和服务器通讯错误=err read tcp [::1]:8889->[::1]:57249: wsarecv: An existing connection was forcibly closed by the remote host.

等待客户端来链接服务器......

读取客户端发送的数据...

mes= &{RegisterMes {"user":{"userId":300,"userPwd":"123456","userName":"cakin3","userStatus":0,"sex":""}}}

读取客户端发送的数据...

readPkg err= read tcp [::1]:8889->[::1]:57266: wsarecv: An existing connection was forcibly closed by the remote host.

客户端和服务器通讯错误=err read tcp [::1]:8889->[::1]:57266: wsarecv: An existing connection was forcibly closed by the remote host.

2 第一个客户端输出

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值