|
|
| 1723 |
// Always respond to first data packet to speed up the connection. |
1726 |
// Always respond to first data packet to speed up the connection. |
| 1724 |
// Remove to get the behaviour of old NS-3 code. |
1727 |
// Remove to get the behaviour of old NS-3 code. |
| 1725 |
m_delAckCount = m_delAckMaxCount; |
1728 |
m_delAckCount = m_delAckMaxCount; |
|
|
1729 |
NotifyNewConnectionCreated (this, fromAddress); |
| 1726 |
ReceivedAck (packet, tcpHeader); |
1730 |
ReceivedAck (packet, tcpHeader); |
| 1727 |
NotifyNewConnectionCreated (this, fromAddress); |
|
|
| 1728 |
// As this connection is established, the socket is available to send data now |
1731 |
// As this connection is established, the socket is available to send data now |
| 1729 |
if (GetTxAvailable () > 0) |
1732 |
if (GetTxAvailable () > 0) |
| 1730 |
{ |
1733 |
{ |
|
|
| 1754 |
m_endPoint6->SetPeer (Inet6SocketAddress::ConvertFrom (fromAddress).GetIpv6 (), |
1757 |
m_endPoint6->SetPeer (Inet6SocketAddress::ConvertFrom (fromAddress).GetIpv6 (), |
| 1755 |
Inet6SocketAddress::ConvertFrom (fromAddress).GetPort ()); |
1758 |
Inet6SocketAddress::ConvertFrom (fromAddress).GetPort ()); |
| 1756 |
} |
1759 |
} |
|
|
1760 |
NotifyNewConnectionCreated (this, fromAddress); |
| 1757 |
PeerClose (packet, tcpHeader); |
1761 |
PeerClose (packet, tcpHeader); |
| 1758 |
} |
1762 |
} |
| 1759 |
} |
1763 |
} |