tcp_state_wait
return (tcp_state_wait(sock_id, tcp, TCPS_ESTABLISHED));
if (tcp_state_wait(sock_id, tcp, TCPS_ALL_ACKED) < 0) {
static int tcp_state_wait(int, tcp_t *, int);
(void) tcp_state_wait(sock_id, tcp, TCPS_ALL_ACKED);
tcp_state_wait(sock_id, tcp, TCPS_FIN_WAIT_2) < 0) {
if (tcp_state_wait(sock_id, tcp, TCPS_TIME_WAIT) < 0) {