'Connect to the remote socket, adding the socket to the IOLoop if
connected
:rtype: bool'

def _adapter_connect(self):

    LOGGER.debug('init    io    and    signal    watchers    if    any')
    global global_sigint_watcher, global_sigterm_watcher
    error = super(LibevConnection, self)._adapter_connect()
    if (not error):
        if (self._on_signal_callback and (not global_sigterm_watcher)):
            global_sigterm_watcher = self.ioloop.signal(signal.SIGTERM, self._handle_sigterm)
        if (self._on_signal_callback and (not global_sigint_watcher)):
            global_sigint_watcher = self.ioloop.signal(signal.SIGINT, self._handle_sigint)
        if (not self._io_watcher):
            self._io_watcher = self.ioloop.io(self.socket.fileno(), self._PIKA_TO_LIBEV_ARRAY[self.event_state], self._handle_events)
        self.async = pyev.Async(self.ioloop, self._noop_callable)
        self.async.start()
        if self._on_signal_callback:
            global_sigterm_watcher.start()
        if self._on_signal_callback:
            global_sigint_watcher.start()
        self._io_watcher.start()
    return error
