1.7.3.14 SYS_WSS_HANDSHAKE_CTXT Struct

C

typedef struct {
    uint16_t http_version; //HTTP version specified in the client handshake
    uint8_t ws_version; //Web socket version specified in the client handshake
    bool upgradeWebSocket; //If upgrade websocket field specified in the client handshake
    bool origin; //If origin field specified in the client handshake
    bool connectionUpgrade; //If upgrade field present in the client handshake
    bool iskey; //If websocket key is present in the client handshake
    char clientKey[SYS_WSS_CLIENT_KEY_SIZE + 1]; //Client key
    char serverKey[SYS_WSS_SERVER_KEY_SIZE + 1]; // Server key
} SYS_WSS_HANDSHAKE_CTXT;

Summary

Used for the storing the information related to the opening handshake.

Remarks

None.