()
| 199 | } |
| 200 | |
| 201 | func (st tcpConnectionState) String() string { |
| 202 | switch st { |
| 203 | case tcpEstablished: |
| 204 | return "established" |
| 205 | case tcpSynSent: |
| 206 | return "syn_sent" |
| 207 | case tcpSynRecv: |
| 208 | return "syn_recv" |
| 209 | case tcpFinWait1: |
| 210 | return "fin_wait1" |
| 211 | case tcpFinWait2: |
| 212 | return "fin_wait2" |
| 213 | case tcpTimeWait: |
| 214 | return "time_wait" |
| 215 | case tcpClose: |
| 216 | return "close" |
| 217 | case tcpCloseWait: |
| 218 | return "close_wait" |
| 219 | case tcpLastAck: |
| 220 | return "last_ack" |
| 221 | case tcpListen: |
| 222 | return "listen" |
| 223 | case tcpClosing: |
| 224 | return "closing" |
| 225 | case tcpRxQueuedBytes: |
| 226 | return "rx_queued_bytes" |
| 227 | case tcpTxQueuedBytes: |
| 228 | return "tx_queued_bytes" |
| 229 | default: |
| 230 | return "unknown" |
| 231 | } |
| 232 | } |
no outgoing calls