

def _send_fiff_command(self, command, data=None):
    'Send a command through the data connection as a fiff tag\n\n        Parameters\n        ----------\n        command : int\n            The command code.\n\n        data : str\n            Additional data to send.\n        '
    kind = FIFF.FIFF_MNE_RT_COMMAND
    type = FIFF.FIFFT_VOID
    size = 4
    if (data is not None):
        size += len(data)
    next = 0
    msg = np.array(kind, dtype='>i4').tostring()
    msg += np.array(type, dtype='>i4').tostring()
    msg += np.array(size, dtype='>i4').tostring()
    msg += np.array(next, dtype='>i4').tostring()
    msg += np.array(command, dtype='>i4').tostring()
    if (data is not None):
        msg += np.array(data, dtype='>c').tostring()
    command._data_sock.sendall(msg)

dataset/ETHPy150Open mne-tools/mne-python/mne/realtime/client.py RtClient._send_fiff_command/VarMisuse@169/278 `self`->`command`