IncrementTCPSuccessPacketCount 增加TCP成功连接包计数
()
| 76 | |
| 77 | // IncrementTCPSuccessPacketCount 增加TCP成功连接包计数 |
| 78 | func (s *State) IncrementTCPSuccessPacketCount() int64 { |
| 79 | atomic.AddInt64(&s.tcpSuccessPacketCount, 1) |
| 80 | atomic.AddInt64(&s.tcpPacketCount, 1) |
| 81 | return atomic.AddInt64(&s.packetCount, 1) |
| 82 | } |
| 83 | |
| 84 | // IncrementTCPFailedPacketCount 增加TCP失败连接包计数 |
| 85 | func (s *State) IncrementTCPFailedPacketCount() int64 { |
no outgoing calls