123456789101112131415161718 |
- // SUT is a client, i.e. it opens a socket and connects to the peer.
- // Afterwards it closes the connection.
- // Create a socket and set it to non-blocking.
- 0.000 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3 // 0
- // Establish connection
- 0.100 connect(3, ..., ...) = -1 EINPROGRESS (Operation now in progress) // 1
- 0.100 > S 0:0(0) <mss 1460, nop, wscale 6, nop, nop, sackOK> // 2
- 0.200 < S. 0:0(0) ack 1 win 5792 <mss 1460, nop, wscale 6, nop, nop, sackOK> // 3
- 0.200 > . 1:1(0) ack 1 <...> // 4
- // Client closes the connection
- 0.300 close(4) = 0
- +0 > F. 1:1(0) ack 1
- +0 < F. 1:1(0) ack 2
- +0 > . 2:2(0) ack 2
|