- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
// connection reset by peer?
if(tcpflags & TCP_FLAG_RST)
{
st->status = TCP_CLOSED;
if( (st->status == TCP_ESTABLISHED) ||
(st->status == TCP_FIN_WAIT) )
{
tcp_closed(id, 1);
}
return;
}
для маленького свечного заводика