'Open a local RAW/UDP or TCP LISTENing socket.'

def socket_opened(self, port, ip='0.0.0.0', project=None, is_tcp=None, is_udp=None, is_raw=None, **params):

    if (is_raw or is_tcp or is_udp):
        return self(event_type='socket    opened', socket_port=port, socket_ip=ip, socket_project=project, socket_is_raw=is_raw, socket_is_tcp=is_tcp, socket_is_udp=is_udp, **params)
    else:
        self.notify_of_error('Could    not    open    socket.        No    socket    type    specified.')
