mne.realtime.StimServer

class mne.realtime.StimServer(port=4218, n_clients=1)

Stimulation Server

Server to communicate with StimClient(s).

Parameters:

port : int

The port to which the stimulation server must bind to.

n_clients : int

The number of clients which will connect to the server.

See also

StimClient

Methods

__hash__() <==> hash(x)
add_trigger(trigger[, verbose]) Method to add a trigger.
shutdown([verbose]) Method to shutdown the client and server.
start([timeout, verbose]) Method to start the server.
__hash__() <==> hash(x)
add_trigger(trigger, verbose=None)

Method to add a trigger.

Parameters:

trigger : int

The trigger to be added to the queue for sending to StimClient.

verbose : bool, str, int, or None

If not None, override default verbose level (see mne.verbose).

shutdown(verbose=None)

Method to shutdown the client and server.

Parameters:

verbose : bool, str, int, or None

If not None, override default verbose level (see mne.verbose).

start(timeout=inf, verbose=None)

Method to start the server.

Parameters:

timeout : float

Maximum time to wait for clients to be added.

verbose : bool, str, int, or None

If not None, override default verbose level (see mne.verbose).