一 注册测试
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.