In what order are HNTcpManager events called?
A. After having sent HNPacket object to ProcessPacket method the HNTcpManager component checks the contents of the object data buffer and takes a decision on further actions: • If the contents of the packet buffer does not meet the checking criteria, HNPacket object will be returned for further using by OnPacketReturn event handler; • The contents of the packet buffer meets the checking criteria: • OnSessionCreate is executed at the moment of TCP session registrating by HNTcpManager object; • OnSessionConnect is executed right after the successful TCP connection establishing; • OnClientData/OnServerData is executed right after the receiving of the data sent by the client/server; • OnSessionClose is executed right after TCP session completion; • OnSessionDelete is executed immediately before HNTcpSession object deletion; • OnPacketReturn is executed after the packet has been freed for further using.