Example #1
0
 /** performs TLS handshake on the socket and
  adds it to the list of ready sockets */
 void handshake(Socket* sock) {
     if (sock->handshake()) {
         return;
     }
     socketsReady.push_back(sock);
 }