'Performs the connections.'

def start(self):

    def conn(sock, host, port):
        try:
            sock.connect((host, port))
            sock.close()
        except:
            pass
    for port in self._tcpPorts:
        s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        conn(s, self._host, int(port))
    for port in self._udpPorts:
        s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
        try:
            s.sendto('', (self._host, int(port)))
        except:
            pass
