Java教程

iOS - SocketClient心跳-重连日志-Server使用Java AIO

本文主要是介绍iOS - SocketClient心跳-重连日志-Server使用Java AIO,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
2020-12-17 16:45:10.698835+0800 SocketClient[48673:4722193] ---主页---
2020-12-17 16:45:10.699060+0800 SocketClient[48673:4722193] connctToServer
2020-12-17 16:45:10.812228+0800 SocketClient[48673:4722193] - (void)socket:(GCDAsyncSocket *)sock didConnectToHost:(NSString *)host port:(uint16_t)port
2020-12-17 16:45:10.812322+0800 SocketClient[48673:4722193] openHearBeatTimer
2020-12-17 16:45:10.812379+0800 SocketClient[48673:4722193] closeHearBeatTimer
2020-12-17 16:45:11.699744+0800 SocketClient[48673:4722193] ---计时器:1
2020-12-17 16:45:12.700573+0800 SocketClient[48673:4722193] ---计时器:2
2020-12-17 16:45:13.700072+0800 SocketClient[48673:4722193] ---计时器:3
2020-12-17 16:45:14.699750+0800 SocketClient[48673:4722193] ---计时器:4
2020-12-17 16:45:15.700612+0800 SocketClient[48673:4722193] ---计时器:5
2020-12-17 16:45:15.813671+0800 SocketClient[48673:4722193] heartCheck-每5s执行一次
2020-12-17 16:45:15.813823+0800 SocketClient[48673:4722193] sendDataToServer
2020-12-17 16:45:15.814054+0800 SocketClient[48673:4722193] 客户端 给 服务端 写完成后会收到写的回调 - (void)socket:(GCDAsyncSocket *)sock didWriteDataWithTag:(long)tag
2020-12-17 16:45:16.324953+0800 SocketClient[48673:4722193] 在读回调里面,你可以根据不同业务来执行不同的操作 - (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag
2020-12-17 16:45:16.325159+0800 SocketClient[48673:4722193] (连接成功后向服务器发送数据后,服务器会有响应)客户端收到数据---Student(name=加菲猫, age=28, school=HENAN_University)
2020-12-17 16:45:16.325338+0800 SocketClient[48673:4722193] 服务器推送次数-self.pushCount:1
2020-12-17 16:45:16.700626+0800 SocketClient[48673:4722193] ---计时器:6
2020-12-17 16:45:17.699818+0800 SocketClient[48673:4722193] ---计时器:7
2020-12-17 16:45:18.699743+0800 SocketClient[48673:4722193] ---计时器:8
2020-12-17 16:45:19.699616+0800 SocketClient[48673:4722193] ---计时器:9
2020-12-17 16:45:20.699642+0800 SocketClient[48673:4722193] ---计时器:10
2020-12-17 16:45:20.813566+0800 SocketClient[48673:4722193] heartCheck-每5s执行一次
2020-12-17 16:45:20.813772+0800 SocketClient[48673:4722193] sendDataToServer
2020-12-17 16:45:20.814034+0800 SocketClient[48673:4722193] 客户端 给 服务端 写完成后会收到写的回调 - (void)socket:(GCDAsyncSocket *)sock didWriteDataWithTag:(long)tag
2020-12-17 16:45:20.815095+0800 SocketClient[48673:4722193] 在读回调里面,你可以根据不同业务来执行不同的操作 - (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag
2020-12-17 16:45:20.815308+0800 SocketClient[48673:4722193] (连接成功后向服务器发送数据后,服务器会有响应)客户端收到数据---Student(name=加菲猫, age=28, school=HENAN_University)
2020-12-17 16:45:20.815454+0800 SocketClient[48673:4722193] 服务器推送次数-self.pushCount:2
2020-12-17 16:45:21.699835+0800 SocketClient[48673:4722193] ---计时器:11
2020-12-17 16:45:22.700234+0800 SocketClient[48673:4722193] ---计时器:12
2020-12-17 16:45:23.700549+0800 SocketClient[48673:4722193] ---计时器:13
2020-12-17 16:45:24.700549+0800 SocketClient[48673:4722193] ---计时器:14
2020-12-17 16:45:25.700535+0800 SocketClient[48673:4722193] ---计时器:15
2020-12-17 16:45:25.813535+0800 SocketClient[48673:4722193] heartCheck-每5s执行一次
2020-12-17 16:45:25.813750+0800 SocketClient[48673:4722193] sendDataToServer
2020-12-17 16:45:25.813911+0800 SocketClient[48673:4722193] 客户端 给 服务端 写完成后会收到写的回调 - (void)socket:(GCDAsyncSocket *)sock didWriteDataWithTag:(long)tag
2020-12-17 16:45:25.814808+0800 SocketClient[48673:4722193] 在读回调里面,你可以根据不同业务来执行不同的操作 - (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag
2020-12-17 16:45:25.814972+0800 SocketClient[48673:4722193] (连接成功后向服务器发送数据后,服务器会有响应)客户端收到数据---Student(name=加菲猫, age=28, school=HENAN_University)
2020-12-17 16:45:25.815105+0800 SocketClient[48673:4722193] 服务器推送次数-self.pushCount:3
2020-12-17 16:45:26.699961+0800 SocketClient[48673:4722193] ---计时器:16
2020-12-17 16:45:27.700517+0800 SocketClient[48673:4722193] ---计时器:17
2020-12-17 16:45:28.699595+0800 SocketClient[48673:4722193] ---计时器:18
2020-12-17 16:45:29.700057+0800 SocketClient[48673:4722193] ---计时器:19
2020-12-17 16:45:30.700002+0800 SocketClient[48673:4722193] ---计时器:20
2020-12-17 16:45:30.812554+0800 SocketClient[48673:4722193] heartCheck-每5s执行一次
2020-12-17 16:45:30.812662+0800 SocketClient[48673:4722193] sendDataToServer
2020-12-17 16:45:30.812881+0800 SocketClient[48673:4722193] 客户端 给 服务端 写完成后会收到写的回调 - (void)socket:(GCDAsyncSocket *)sock didWriteDataWithTag:(long)tag
2020-12-17 16:45:30.813571+0800 SocketClient[48673:4722193] 在读回调里面,你可以根据不同业务来执行不同的操作 - (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag
2020-12-17 16:45:30.813696+0800 SocketClient[48673:4722193] (连接成功后向服务器发送数据后,服务器会有响应)客户端收到数据---Student(name=加菲猫, age=28, school=HENAN_University)
2020-12-17 16:45:30.813801+0800 SocketClient[48673:4722193] 服务器推送次数-self.pushCount:4
2020-12-17 16:45:31.700453+0800 SocketClient[48673:4722193] ---计时器:21
2020-12-17 16:45:32.700486+0800 SocketClient[48673:4722193] ---计时器:22
2020-12-17 16:45:33.700468+0800 SocketClient[48673:4722193] ---计时器:23
2020-12-17 16:45:34.700451+0800 SocketClient[48673:4722193] ---计时器:24
2020-12-17 16:45:35.700442+0800 SocketClient[48673:4722193] ---计时器:25
2020-12-17 16:45:35.812580+0800 SocketClient[48673:4722193] heartCheck-每5s执行一次
2020-12-17 16:45:35.812710+0800 SocketClient[48673:4722193] sendDataToServer
2020-12-17 16:45:35.812895+0800 SocketClient[48673:4722193] 客户端 给 服务端 写完成后会收到写的回调 - (void)socket:(GCDAsyncSocket *)sock didWriteDataWithTag:(long)tag
2020-12-17 16:45:35.813876+0800 SocketClient[48673:4722193] 在读回调里面,你可以根据不同业务来执行不同的操作 - (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag
2020-12-17 16:45:35.814048+0800 SocketClient[48673:4722193] (连接成功后向服务器发送数据后,服务器会有响应)客户端收到数据---Student(name=加菲猫, age=28, school=HENAN_University)
2020-12-17 16:45:35.814161+0800 SocketClient[48673:4722193] 服务器推送次数-self.pushCount:5
2020-12-17 16:45:36.699511+0800 SocketClient[48673:4722193] ---计时器:26
2020-12-17 16:45:37.700414+0800 SocketClient[48673:4722193] ---计时器:27
2020-12-17 16:45:38.699813+0800 SocketClient[48673:4722193] ---计时器:28
2020-12-17 16:45:39.700424+0800 SocketClient[48673:4722193] ---计时器:29
2020-12-17 16:45:40.700416+0800 SocketClient[48673:4722193] ---计时器:30
2020-12-17 16:45:40.813253+0800 SocketClient[48673:4722193] heartCheck-每5s执行一次
2020-12-17 16:45:40.813412+0800 SocketClient[48673:4722193] sendDataToServer
2020-12-17 16:45:40.813587+0800 SocketClient[48673:4722193] 客户端 给 服务端 写完成后会收到写的回调 - (void)socket:(GCDAsyncSocket *)sock didWriteDataWithTag:(long)tag
2020-12-17 16:45:40.814228+0800 SocketClient[48673:4722193] 在读回调里面,你可以根据不同业务来执行不同的操作 - (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag
2020-12-17 16:45:40.814342+0800 SocketClient[48673:4722193] (连接成功后向服务器发送数据后,服务器会有响应)客户端收到数据---Student(name=加菲猫, age=28, school=HENAN_University)
2020-12-17 16:45:40.814444+0800 SocketClient[48673:4722193] 服务器推送次数-self.pushCount:6
2020-12-17 16:45:41.699528+0800 SocketClient[48673:4722193] ---计时器:31
2020-12-17 16:45:42.700394+0800 SocketClient[48673:4722193] ---计时器:32
2020-12-17 16:45:43.700377+0800 SocketClient[48673:4722193] ---计时器:33
2020-12-17 16:45:44.699990+0800 SocketClient[48673:4722193] ---计时器:34
2020-12-17 16:45:45.700254+0800 SocketClient[48673:4722193] ---计时器:35
2020-12-17 16:45:45.812914+0800 SocketClient[48673:4722193] heartCheck-每5s执行一次
2020-12-17 16:45:45.813106+0800 SocketClient[48673:4722193] sendDataToServer
2020-12-17 16:45:45.813259+0800 SocketClient[48673:4722193] 客户端 给 服务端 写完成后会收到写的回调 - (void)socket:(GCDAsyncSocket *)sock didWriteDataWithTag:(long)tag
2020-12-17 16:45:45.814135+0800 SocketClient[48673:4722193] 在读回调里面,你可以根据不同业务来执行不同的操作 - (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag
2020-12-17 16:45:45.814249+0800 SocketClient[48673:4722193] (连接成功后向服务器发送数据后,服务器会有响应)客户端收到数据---Student(name=加菲猫, age=28, school=HENAN_University)
2020-12-17 16:45:45.814388+0800 SocketClient[48673:4722193] 服务器推送次数-self.pushCount:7
2020-12-17 16:45:46.699329+0800 SocketClient[48673:4722193] ---计时器:36
2020-12-17 16:45:47.699820+0800 SocketClient[48673:4722193] ---计时器:37
2020-12-17 16:45:48.700343+0800 SocketClient[48673:4722193] ---计时器:38
2020-12-17 16:45:49.700105+0800 SocketClient[48673:4722193] ---计时器:39
2020-12-17 16:45:50.185010+0800 SocketClient[48673:4722193] -(void)socketDidDisconnect:(GCDAsyncSocket *)sock withError:(NSError *)err
2020-12-17 16:45:50.185096+0800 SocketClient[48673:4722193] closeHearBeatTimer
2020-12-17 16:45:50.185201+0800 SocketClient[48673:4722193] 重新连接 - 时间间隔:1.000000
2020-12-17 16:45:50.700097+0800 SocketClient[48673:4722193] ---计时器:40
2020-12-17 16:45:51.186446+0800 SocketClient[48673:4722193] reconnectServer
2020-12-17 16:45:51.186828+0800 SocketClient[48673:4722193] -(void)socketDidDisconnect:(GCDAsyncSocket *)sock withError:(NSError *)err
2020-12-17 16:45:51.186906+0800 SocketClient[48673:4722193] closeHearBeatTimer
2020-12-17 16:45:51.187001+0800 SocketClient[48673:4722193] 重新连接 - 时间间隔:2.000000
2020-12-17 16:45:51.700212+0800 SocketClient[48673:4722193] ---计时器:41
2020-12-17 16:45:52.699742+0800 SocketClient[48673:4722193] ---计时器:42
2020-12-17 16:45:53.187770+0800 SocketClient[48673:4722193] reconnectServer
2020-12-17 16:45:53.188204+0800 SocketClient[48673:4722193] -(void)socketDidDisconnect:(GCDAsyncSocket *)sock withError:(NSError *)err
2020-12-17 16:45:53.188285+0800 SocketClient[48673:4722193] closeHearBeatTimer
2020-12-17 16:45:53.188380+0800 SocketClient[48673:4722193] 重新连接 - 时间间隔:3.000000
2020-12-17 16:45:53.700282+0800 SocketClient[48673:4722193] ---计时器:43
2020-12-17 16:45:54.700283+0800 SocketClient[48673:4722193] ---计时器:44
2020-12-17 16:45:55.700257+0800 SocketClient[48673:4722193] ---计时器:45
2020-12-17 16:45:56.188825+0800 SocketClient[48673:4722193] reconnectServer
2020-12-17 16:45:56.189367+0800 SocketClient[48673:4722193] -(void)socketDidDisconnect:(GCDAsyncSocket *)sock withError:(NSError *)err
2020-12-17 16:45:56.189439+0800 SocketClient[48673:4722193] closeHearBeatTimer
2020-12-17 16:45:56.189531+0800 SocketClient[48673:4722193] 重新连接 - 时间间隔:4.000000
2020-12-17 16:45:56.700272+0800 SocketClient[48673:4722193] ---计时器:46
2020-12-17 16:45:57.700275+0800 SocketClient[48673:4722193] ---计时器:47
2020-12-17 16:45:58.700235+0800 SocketClient[48673:4722193] ---计时器:48
2020-12-17 16:45:59.700221+0800 SocketClient[48673:4722193] ---计时器:49
2020-12-17 16:46:00.189991+0800 SocketClient[48673:4722193] reconnectServer
2020-12-17 16:46:00.190464+0800 SocketClient[48673:4722193] -(void)socketDidDisconnect:(GCDAsyncSocket *)sock withError:(NSError *)err
2020-12-17 16:46:00.190538+0800 SocketClient[48673:4722193] closeHearBeatTimer
2020-12-17 16:46:00.190625+0800 SocketClient[48673:4722193] 重新连接 - 时间间隔:5.000000
2020-12-17 16:46:00.700249+0800 SocketClient[48673:4722193] ---计时器:50
2020-12-17 16:46:01.699536+0800 SocketClient[48673:4722193] ---计时器:51
2020-12-17 16:46:02.699120+0800 SocketClient[48673:4722193] ---计时器:52
2020-12-17 16:46:03.699395+0800 SocketClient[48673:4722193] ---计时器:53
2020-12-17 16:46:04.700110+0800 SocketClient[48673:4722193] ---计时器:54
2020-12-17 16:46:05.190987+0800 SocketClient[48673:4722193] reconnectServer
2020-12-17 16:46:05.191529+0800 SocketClient[48673:4722193] - (void)socket:(GCDAsyncSocket *)sock didConnectToHost:(NSString *)host port:(uint16_t)port
2020-12-17 16:46:05.191631+0800 SocketClient[48673:4722193] openHearBeatTimer
2020-12-17 16:46:05.191681+0800 SocketClient[48673:4722193] closeHearBeatTimer
2020-12-17 16:46:05.700180+0800 SocketClient[48673:4722193] ---计时器:55
2020-12-17 16:46:06.700168+0800 SocketClient[48673:4722193] ---计时器:56
2020-12-17 16:46:07.700128+0800 SocketClient[48673:4722193] ---计时器:57
2020-12-17 16:46:08.700176+0800 SocketClient[48673:4722193] ---计时器:58
2020-12-17 16:46:09.700128+0800 SocketClient[48673:4722193] ---计时器:59
2020-12-17 16:46:10.192888+0800 SocketClient[48673:4722193] heartCheck-每5s执行一次
2020-12-17 16:46:10.193011+0800 SocketClient[48673:4722193] sendDataToServer
2020-12-17 16:46:10.193195+0800 SocketClient[48673:4722193] 客户端 给 服务端 写完成后会收到写的回调 - (void)socket:(GCDAsyncSocket *)sock didWriteDataWithTag:(long)tag
2020-12-17 16:46:10.556167+0800 SocketClient[48673:4722193] 在读回调里面,你可以根据不同业务来执行不同的操作 - (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag
2020-12-17 16:46:10.556299+0800 SocketClient[48673:4722193] (连接成功后向服务器发送数据后,服务器会有响应)客户端收到数据---Student(name=加菲猫, age=28, school=HENAN_University)
2020-12-17 16:46:10.556403+0800 SocketClient[48673:4722193] 服务器推送次数-self.pushCount:1
2020-12-17 16:46:10.699502+0800 SocketClient[48673:4722193] ---计时器:60
2020-12-17 16:46:11.699024+0800 SocketClient[48673:4722193] ---计时器:61
2020-12-17 16:46:12.699537+0800 SocketClient[48673:4722193] ---计时器:62
2020-12-17 16:46:13.699712+0800 SocketClient[48673:4722193] ---计时器:63
2020-12-17 16:46:14.699904+0800 SocketClient[48673:4722193] ---计时器:64
2020-12-17 16:46:15.192846+0800 SocketClient[48673:4722193] heartCheck-每5s执行一次
2020-12-17 16:46:15.192970+0800 SocketClient[48673:4722193] sendDataToServer
2020-12-17 16:46:15.193143+0800 SocketClient[48673:4722193] 客户端 给 服务端 写完成后会收到写的回调 - (void)socket:(GCDAsyncSocket *)sock didWriteDataWithTag:(long)tag
2020-12-17 16:46:15.194176+0800 SocketClient[48673:4722193] 在读回调里面,你可以根据不同业务来执行不同的操作 - (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag
2020-12-17 16:46:15.194321+0800 SocketClient[48673:4722193] (连接成功后向服务器发送数据后,服务器会有响应)客户端收到数据---Student(name=加菲猫, age=28, school=HENAN_University)
2020-12-17 16:46:15.194414+0800 SocketClient[48673:4722193] 服务器推送次数-self.pushCount:2
2020-12-17 16:46:15.699880+0800 SocketClient[48673:4722193] ---计时器:65
2020-12-17 16:46:16.700112+0800 SocketClient[48673:4722193] ---计时器:66
2020-12-17 16:46:17.700038+0800 SocketClient[48673:4722193] ---计时器:67
2020-12-17 16:46:18.700029+0800 SocketClient[48673:4722193] ---计时器:68
2020-12-17 16:46:19.700036+0800 SocketClient[48673:4722193] ---计时器:69
2020-12-17 16:46:20.192709+0800 SocketClient[48673:4722193] heartCheck-每5s执行一次
2020-12-17 16:46:20.192882+0800 SocketClient[48673:4722193] sendDataToServer
2020-12-17 16:46:20.193052+0800 SocketClient[48673:4722193] 客户端 给 服务端 写完成后会收到写的回调 - (void)socket:(GCDAsyncSocket *)sock didWriteDataWithTag:(long)tag
2020-12-17 16:46:20.194248+0800 SocketClient[48673:4722193] 在读回调里面,你可以根据不同业务来执行不同的操作 - (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag
2020-12-17 16:46:20.194372+0800 SocketClient[48673:4722193] (连接成功后向服务器发送数据后,服务器会有响应)客户端收到数据---Student(name=加菲猫, age=28, school=HENAN_University)
2020-12-17 16:46:20.194504+0800 SocketClient[48673:4722193] 服务器推送次数-self.pushCount:3
2020-12-17 16:46:20.700033+0800 SocketClient[48673:4722193] ---计时器:70
2020-12-17 16:46:21.699228+0800 SocketClient[48673:4722193] ---计时器:71
2020-12-17 16:46:22.699479+0800 SocketClient[48673:4722193] ---计时器:72
2020-12-17 16:46:23.700092+0800 SocketClient[48673:4722193] ---计时器:73
2020-12-17 16:46:24.700000+0800 SocketClient[48673:4722193] ---计时器:74
2020-12-17 16:46:25.192425+0800 SocketClient[48673:4722193] heartCheck-每5s执行一次
2020-12-17 16:46:25.192619+0800 SocketClient[48673:4722193] sendDataToServer
2020-12-17 16:46:25.192783+0800 SocketClient[48673:4722193] 客户端 给 服务端 写完成后会收到写的回调 - (void)socket:(GCDAsyncSocket *)sock didWriteDataWithTag:(long)tag
2020-12-17 16:46:25.193547+0800 SocketClient[48673:4722193] 在读回调里面,你可以根据不同业务来执行不同的操作 - (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag
2020-12-17 16:46:25.193648+0800 SocketClient[48673:4722193] (连接成功后向服务器发送数据后,服务器会有响应)客户端收到数据---Student(name=加菲猫, age=28, school=HENAN_University)
2020-12-17 16:46:25.193776+0800 SocketClient[48673:4722193] 服务器推送次数-self.pushCount:4
2020-12-17 16:46:25.699984+0800 SocketClient[48673:4722193] ---计时器:75
2020-12-17 16:46:26.700009+0800 SocketClient[48673:4722193] ---计时器:76
2020-12-17 16:46:27.699003+0800 SocketClient[48673:4722193] ---计时器:77
2020-12-17 16:46:28.699398+0800 SocketClient[48673:4722193] ---计时器:78
2020-12-17 16:46:29.699476+0800 SocketClient[48673:4722193] ---计时器:79
2020-12-17 16:46:30.191924+0800 SocketClient[48673:4722193] heartCheck-每5s执行一次
2020-12-17 16:46:30.192040+0800 SocketClient[48673:4722193] sendDataToServer
2020-12-17 16:46:30.192209+0800 SocketClient[48673:4722193] 客户端 给 服务端 写完成后会收到写的回调 - (void)socket:(GCDAsyncSocket *)sock didWriteDataWithTag:(long)tag
2020-12-17 16:46:30.192911+0800 SocketClient[48673:4722193] 在读回调里面,你可以根据不同业务来执行不同的操作 - (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag
2020-12-17 16:46:30.193035+0800 SocketClient[48673:4722193] (连接成功后向服务器发送数据后,服务器会有响应)客户端收到数据---Student(name=加菲猫, age=28, school=HENAN_University)
2020-12-17 16:46:30.193170+0800 SocketClient[48673:4722193] 服务器推送次数-self.pushCount:5
2020-12-17 16:46:30.699259+0800 SocketClient[48673:4722193] ---计时器:80
2020-12-17 16:46:31.699732+0800 SocketClient[48673:4722193] ---计时器:81
2020-12-17 16:46:32.699950+0800 SocketClient[48673:4722193] ---计时器:82
2020-12-17 16:46:33.699597+0800 SocketClient[48673:4722193] ---计时器:83
2020-12-17 16:46:34.164853+0800 SocketClient[48673:4722193] -(void)socketDidDisconnect:(GCDAsyncSocket *)sock withError:(NSError *)err
2020-12-17 16:46:34.164945+0800 SocketClient[48673:4722193] closeHearBeatTimer
2020-12-17 16:46:34.165039+0800 SocketClient[48673:4722193] 重新连接 - 时间间隔:1.000000
2020-12-17 16:46:34.698837+0800 SocketClient[48673:4722193] ---计时器:84
2020-12-17 16:46:35.166321+0800 SocketClient[48673:4722193] reconnectServer
2020-12-17 16:46:35.166686+0800 SocketClient[48673:4722193] -(void)socketDidDisconnect:(GCDAsyncSocket *)sock withError:(NSError *)err
2020-12-17 16:46:35.166762+0800 SocketClient[48673:4722193] closeHearBeatTimer
2020-12-17 16:46:35.166849+0800 SocketClient[48673:4722193] 重新连接 - 时间间隔:2.000000
2020-12-17 16:46:35.699885+0800 SocketClient[48673:4722193] ---计时器:85
2020-12-17 16:46:36.699863+0800 SocketClient[48673:4722193] ---计时器:86
2020-12-17 16:46:37.168057+0800 SocketClient[48673:4722193] reconnectServer
2020-12-17 16:46:37.168422+0800 SocketClient[48673:4722193] -(void)socketDidDisconnect:(GCDAsyncSocket *)sock withError:(NSError *)err
2020-12-17 16:46:37.168500+0800 SocketClient[48673:4722193] closeHearBeatTimer
2020-12-17 16:46:37.168600+0800 SocketClient[48673:4722193] 重新连接 - 时间间隔:3.000000
2020-12-17 16:46:37.699878+0800 SocketClient[48673:4722193] ---计时器:87
2020-12-17 16:46:38.699821+0800 SocketClient[48673:4722193] ---计时器:88
2020-12-17 16:46:39.698805+0800 SocketClient[48673:4722193] ---计时器:89
2020-12-17 16:46:40.169088+0800 SocketClient[48673:4722193] reconnectServer
2020-12-17 16:46:40.169431+0800 SocketClient[48673:4722193] -(void)socketDidDisconnect:(GCDAsyncSocket *)sock withError:(NSError *)err
2020-12-17 16:46:40.169511+0800 SocketClient[48673:4722193] closeHearBeatTimer
2020-12-17 16:46:40.169607+0800 SocketClient[48673:4722193] 重新连接 - 时间间隔:4.000000
2020-12-17 16:46:40.698882+0800 SocketClient[48673:4722193] ---计时器:90
2020-12-17 16:46:41.698916+0800 SocketClient[48673:4722193] ---计时器:91
2020-12-17 16:46:42.699559+0800 SocketClient[48673:4722193] ---计时器:92
2020-12-17 16:46:43.699761+0800 SocketClient[48673:4722193] ---计时器:93
2020-12-17 16:46:44.170585+0800 SocketClient[48673:4722193] reconnectServer
2020-12-17 16:46:44.170957+0800 SocketClient[48673:4722193] -(void)socketDidDisconnect:(GCDAsyncSocket *)sock withError:(NSError *)err
2020-12-17 16:46:44.171031+0800 SocketClient[48673:4722193] closeHearBeatTimer
2020-12-17 16:46:44.171120+0800 SocketClient[48673:4722193] 重新连接 - 时间间隔:5.000000
2020-12-17 16:46:44.699818+0800 SocketClient[48673:4722193] ---计时器:94
2020-12-17 16:46:45.699830+0800 SocketClient[48673:4722193] ---计时器:95
2020-12-17 16:46:46.699793+0800 SocketClient[48673:4722193] ---计时器:96
2020-12-17 16:46:47.699778+0800 SocketClient[48673:4722193] ---计时器:97
2020-12-17 16:46:48.699774+0800 SocketClient[48673:4722193] ---计时器:98
2020-12-17 16:46:49.172274+0800 SocketClient[48673:4722193] reconnectServer
2020-12-17 16:46:49.172640+0800 SocketClient[48673:4722193] -(void)socketDidDisconnect:(GCDAsyncSocket *)sock withError:(NSError *)err
2020-12-17 16:46:49.172717+0800 SocketClient[48673:4722193] closeHearBeatTimer
2020-12-17 16:46:49.172812+0800 SocketClient[48673:4722193] 重新连接 - 时间间隔:6.000000
2020-12-17 16:46:49.699768+0800 SocketClient[48673:4722193] ---计时器:99
2020-12-17 16:46:50.699787+0800 SocketClient[48673:4722193] ---计时器:100
2020-12-17 16:46:51.699687+0800 SocketClient[48673:4722193] ---计时器:101
2020-12-17 16:46:52.699230+0800 SocketClient[48673:4722193] ---计时器:102
2020-12-17 16:46:53.698680+0800 SocketClient[48673:4722193] ---计时器:103
2020-12-17 16:46:54.699706+0800 SocketClient[48673:4722193] ---计时器:104
2020-12-17 16:46:55.173929+0800 SocketClient[48673:4722193] reconnectServer
2020-12-17 16:46:55.174496+0800 SocketClient[48673:4722193] - (void)socket:(GCDAsyncSocket *)sock didConnectToHost:(NSString *)host port:(uint16_t)port
2020-12-17 16:46:55.174583+0800 SocketClient[48673:4722193] openHearBeatTimer
2020-12-17 16:46:55.174654+0800 SocketClient[48673:4722193] closeHearBeatTimer
2020-12-17 16:46:55.699026+0800 SocketClient[48673:4722193] ---计时器:105
2020-12-17 16:46:56.699662+0800 SocketClient[48673:4722193] ---计时器:106
2020-12-17 16:46:57.699700+0800 SocketClient[48673:4722193] ---计时器:107
2020-12-17 16:46:58.699226+0800 SocketClient[48673:4722193] ---计时器:108

代码仓库:NIiOS

作者微信号:wvqusrtg

 

这篇关于iOS - SocketClient心跳-重连日志-Server使用Java AIO的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!