dxlopenc2client.client module

class dxlopenc2client.client.OpenC2Client(dxl_client)

Bases: dxlbootstrap.client.Client

The Open Command and Control (OpenC2) client wrapper class.

Constructor parameters:

Parameters:dxl_client -- The DXL client to use for communication with the fabric
send_command(topic, command)

Sends an Open Command and Control (OpenC2) message to the specified DXL service and returns the response.

The Lycan library contains the OpenC2 classes (Command, Response, etc.).

Parameters:
  • topic -- The DXL service topic to send the OpenC2 command to
  • command -- The openc2.v10.Command to send to the DXL service
Returns:

The openc2.v10.Response received from the DXL service