2014-07-19 22:41:20 INFO [com.p2p.udp_dig_hole.server.MainServer] 服务端开始启动! 2014-07-19 22:41:25 INFO [com.p2p.udp_dig_hole.server.MainServer] [StartP2PServiveChanege]我收到一个客户端发送的信息: [ip:14.20.224.132,port:42332 ],content: LOGIN|wood 2014-07-19 22:41:25 INFO [com.p2p.udp_dig_hole.server.MainServer] 进入了[dealLogin]方法-处理登陆请求. 2014-07-19 22:41:25 INFO [com.p2p.udp_dig_hole.server.MainServer] [dealLogin]向客户端返回当前所有用户的登录列表,其数据为:LIST_ONLINE|14.20.224.132,42332,wood| 2014-07-19 22:41:41 INFO [com.p2p.udp_dig_hole.server.MainServer] [StartP2PServiveChanege]我收到一个客户端发送的信息: [ip:14.20.224.132,port:42354 ],content: LOGIN|joy 2014-07-19 22:41:41 INFO [com.p2p.udp_dig_hole.server.MainServer] 进入了[dealLogin]方法-处理登陆请求. 2014-07-19 22:41:41 INFO [com.p2p.udp_dig_hole.server.MainServer] [dealLogin]向客户端返回当前所有用户的登录列表,其数据为:LIST_ONLINE|14.20.224.132,42332,wood|14.20.224.132,42354,joy| 2014-07-19 22:43:00 INFO [com.p2p.udp_dig_hole.server.MainServer] [StartP2PServiveChanege]我收到一个客户端发送的信息: [ip:14.20.224.132,port:42354 ],content: WANT_TO_CONNECT|14.20.224.132|41960|wood 2014-07-19 22:43:00 INFO [com.p2p.udp_dig_hole.server.MainServer] 进入了[notifyPunchHole]方法-通知打洞. 2014-07-19 22:43:00 INFO [com.p2p.udp_dig_hole.server.MainServer] [notifyPunchHole]给客户端返回信息:[PUNCH_HOLE_TO|14.20.224.132|42354] 2014-07-19 22:44:12 INFO [com.p2p.udp_dig_hole.server.MainServer] [StartP2PServiveChanege]我收到一个客户端发送的信息: [ip:14.20.224.132,port:42332 ],content: WANT_TO_CONNECT|14.20.224.132|42354|joy 2014-07-19 22:44:12 INFO [com.p2p.udp_dig_hole.server.MainServer] 进入了[notifyPunchHole]方法-通知打洞. 2014-07-19 22:44:12 INFO [com.p2p.udp_dig_hole.server.MainServer] [notifyPunchHole]给客户端返回信息:[PUNCH_HOLE_TO|14.20.224.132|42332] 2014-07-19 22:44:12 INFO [com.p2p.udp_dig_hole.server.MainServer] [StartP2PServiveChanege]我收到一个客户端发送的信息: [ip:14.20.224.132,port:42354 ],content: SUCCESS_HOLE_TO|14.20.224.132|42332 2014-07-19 22:44:12 INFO [com.p2p.udp_dig_hole.server.MainServer] 进入了[notifyPunchHoleSuccess]方法-通知打洞成功. 2014-07-19 22:44:12 INFO [com.p2p.udp_dig_hole.server.MainServer] [notifyPunchHoleSuccess]给客户端返回信息:[CAN_P2P_TO|14.20.224.132|42354]
客户端joy登录了。
我是客户端,我的身份是:182.254.141.29|1000|joy [MainClient]我收到了一份数据,内容是:[ip:182.254.141.29,port:1000]内容是:LIST_ONLINE|14.20.224.132,42332,wood|14.20.224.132,42354,joy| [dealListOnline]请问客户端您要和谁连接(192.168.0.2|1000|xwz),请输入(xxx不连接):14.20.224.132|41960|wood [dealListOnline]哦,知道了,你想连接:WANT_TO_CONNECT|14.20.224.132|41960|wood [dealListOnLine]我已经向服务器发送了:WANT_TO_CONNECT|14.20.224.132|41960|wood [MainClient]我收到了一份数据,内容是:[ip:182.254.141.29,port:1000]内容是:PUNCH_HOLE_TO|14.20.224.132|42332 [dealPunchTo]原来是请求打洞,我接下来发送报文:HELLO_MYP2P_FRIEND|打洞 [dealPunchTo]告诉服务器打洞成功:SUCCESS_HOLE_TO|14.20.224.132|42332 [MainClient]我收到了一份数据,内容是:[ip:14.20.224.132,port:42332]内容是:HELLO_MYP2P_FRIEND|你好,我是wood
客户端wood登录了,并且请求向joy打洞成功
我是客户端,我的身份是:182.254.141.29|1000|wood [MainClient]我收到了一份数据,内容是:[ip:182.254.141.29,port:1000]内容是:LIST_ONLINE|14.20.224.132,42332,wood| [dealListOnline]请问客户端您要和谁连接(192.168.0.2|1000|xwz),请输入(xxx不连接):14.20.224.132|42354|joy [dealListOnline]哦,知道了,你想连接:WANT_TO_CONNECT|14.20.224.132|42354|joy [dealListOnLine]我已经向服务器发送了:WANT_TO_CONNECT|14.20.224.132|42354|joy [MainClient]我收到了一份数据,内容是:[ip:14.20.224.132,port:42354]内容是:HELLO_MYP2P_FRIEND|打洞 [MainClient]我收到了一份数据,内容是:[ip:14.20.224.132,port:42354]内容是:HELLO_MYP2P_FRIEND|打洞 [MainClient]我收到了一份数据,内容是:[ip:14.20.224.132,port:42354]内容是:HELLO_MYP2P_FRIEND|打洞 [MainClient]我收到了一份数据,内容是:[ip:182.254.141.29,port:1000]内容是:CAN_P2P_TO|14.20.224.132|42354