2.2.9.2.1.9.1 TSG_PACKET_TYPE_MESSAGE_UNION

The TSG_PACKET_TYPE_MESSAGE_UNION union contains the actual message that is sent by the TS Gateway server to the client. The exact type of message depends on msgType field as specified in section 2.2.9.2.1.9.

 typedef 
 [switch_type(unsigned long)] 
 union {
   [case(TSG_ASYNC_MESSAGE_CONSENT_MESSAGE)] 
     PTSG_PACKET_STRING_MESSAGE consentMessage;
   [case(TSG_ASYNC_MESSAGE_SERVICE_MESSAGE)] 
     PTSG_PACKET_STRING_MESSAGE serviceMessage;
   [case(TSG_ASYNC_MESSAGE_REAUTH)] 
     PTSG_PACKET_REAUTH_MESSAGE reauthMessage;
 } TSG_PACKET_TYPE_MESSAGE_UNION,
  *PTSG_PACKET_TYPE_MESSAGE_UNION ;

consentMessage: A pointer to a TSG_PACKET_STRING_MESSAGE structure, as defined in section 2.2.9.2.1.9.1.1. This field is used if msgType field specified in section 2.2.9.2.1.9 is set to TSG_ASYNC_MESSAGE_CONSENT_MESSAGE.

serviceMessage: A pointer to a TSG_PACKET_STRING_MESSAGE structure, as defined in section 2.2.9.2.1.9.1.1. This field is used if msgType field specified in section 2.2.9.2.1.9 is set to TSG_ASYNC_MESSAGE_SERVICE_MESSAGE.

reauthMessage: A pointer to a TSG_PACKET_REAUTH_MESSAGE structure, as defined in section 2.2.9.2.1.9.1.2. This field is used if msgType field specified in section 2.2.9.2.1.9 is set to TSG_ASYNC_MESSAGE_REAUTH.