SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
ALPN is a list of application protocols negotiated in the handshake. The client sends the desired ALPN list, and the server picks one and notifies the client.
The supported protocols are:
This list is only available in client mode. The list is not set by default if this option is not used. To retrieve the selected protocol after the handshake, use sl_GetSockOpt with the SL_SO_SSL_CONNECTION_PARAMS option. This option should be called before sl_Connect or sl_Listen.
Example:
SlSockSecureALPN_t alpn;
_i16 status;
alpn.SecureALPN = SL_SECURE_ALPN_H1 | SL_SECURE_ALPN_H2_16;
status = sl_SetSockOpt(SockID,SL_SOL_SOCKET,SL_SO_SECURE_ALPN,&alpn,sizeof(SlSockSecureALPN_t));