Sets the ALPN selection callback on the server.
The callback is used to select the application layer protocol in the handshake phase, cb can be NULL.