'Wrap and return the given socket.'

def bind(self, sock):

    if (self.context is None):
        self.context = self.get_context()
    conn = SSLConnection(self.context, sock)
    self._environ = self.get_environ()
    return conn
