Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

In what order are HNTcpManager events called?

called events hntcpmanager
0
Posted

In what order are HNTcpManager events called?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123