If a message has an expected size this condition will only be true if the input so far has reached or exceeded this size. In the common scenario where an incoming message has a header stating the length, the expected size starts at zero and this function returns true. The input is then provisionally processed and this will establish the expected size. This function will then not return true until the whole message in in.

Return TypeFunction nameArguments
boolhzIpConnex::MsgReady(void)

Declared and defined in file: hzIpServer.h

Function Logic:

0:START 1:unknown 2:Return true 3:unknown 4:Return true 5:Return false

Function body:

bool hzIpConnex::MsgReady (void)
   {
       //  If a message has an expected size this condition will only be true if the input so far has reached or exceeded this size. In the common
       //  scenario where an incoming message has a header stating the length, the expected size starts at zero and this function returns true. The
       //  input is then provisionally processed and this will establish the expected size. This function will then not return true until the whole
       //  message in in.
       if (!m_nExpected)
           return true ;
       if (m_Input.Size() >&eq; (m_nExpected + m_nStart))
           return true ;
       return false ;
   }