Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646
1136 Discussions

How to use •libsioclient_tls.a on iOS platform to connect to Server with SSL?

利军_赵_
Beginner
231 Views

Hi, All:

        How to use libsioclient_tls.a on iOS platform to connect to Server with SSL?

  • libsioclient.a - this library includes Socket.IO C++ client without TLS features.
  • libsioclient_tls.a - this library includes the Socket.IO C++ client with TLS features

        I have replace libsioclient instead of libsioclient_tls, but it still can't work.

        On Android platform, it is ok with below code:       

IO.Options opt = new IO.Options();
opt.forceNew = true;
opt.reconnection = true;
opt.transports = new String[]{"websocket", "polling"};

opt.secure = true;
opt.hostnameVerifier = new MyHostnameVerifier(NetUtil.getHost(url));
if (null != sslContext) {
    opt.sslContext = sslContext;
}

 

 

Socket.IO C++ Client

0 Kudos
1 Reply
Jianjun_Z_Intel
Employee
231 Views

Hi,

Please validate your server's certificate if SSL/TLS is enabled. libsioclient_tls.a provided in the release package will verify server's certificate during handshaking.

Reply