Examples/TcpReassembly/main.cpp
/**
 * The callback being called by the TCP reassembly module whenever a new connection is found. This method adds the connection to the connection manager
 */
The callback being called by the TCP reassembly module whenever a new connection is found. This method adds the connection to the connection manager
The callback being called by the TCP reassembly module whenever a new connection is found . This method adds the connection to the connection manager
static void tcpReassemblyConnectionStartCallback(const pcpp::ConnectionData& connectionData, void* userCookie)
{
	TcpReassemblyConnMgr* connMgr = (TcpReassemblyConnMgr*)userCookie;
	TcpReassemblyConnMgrIter iter = connMgr->find(connectionData.flowKey);
	if (iter == connMgr->end())
	{
		connMgr->insert(std::make_pair(connectionData.flowKey, TcpReassemblyData()));
	}
}
static void tcpReassemblyConnectionStartCallback ( const pcpp :: ConnectionData & connectionData , void * userCookie ) { TcpReassemblyConnMgr * connMgr = ( TcpReassemblyConnMgr * ) userCookie ; TcpReassemblyConnMgrIter iter = connMgr -> find ( connectionData . flowKey ) ; if ( iter == connMgr -> end ( ) ) { connMgr -> insert ( std :: make_pair ( connectionData . flowKey , TcpReassemblyData ( ) ) ) ; } }
The callback being called by the TCP reassembly module whenever a new connection is found.
The callback being called by the TCP reassembly module whenever a new connection is found .
// get a pointer to the connection manager
 // look for the connection in the connection manager
 // assuming it's a new connection
 // add it to the connection manager
