Hie,
I have written this in ipv4-nix-vector-routing's route output. But, "caught fin packet" is never displayed.
if(p)
{
TcpHeader tcpHeader;
p->PeekHeader(tcpHeader);
uint8_t tcpflags = tcpHeader.GetFlags () & ~(TcpHeader::PSH | TcpHeader::URG);
if (tcpflags == TcpHeader::FIN)
{
std::cout<<"caught fin packet";
}
}
I have checked the log of Tcpsocketbase also, the connection is being terminated properly.
In routeoutput of nix-vector-routing, How can I detect that the application has finished sending data and is about to close the socket ? Please help me out