Previous topic

spinnman.connections.abstract_classes.abstract_eieio_sender module

Next topic

spinnman.connections.abstract_classes.abstract_multicast_sender module

This Page

spinnman.connections.abstract_classes.abstract_multicast_receiver module

class spinnman.connections.abstract_classes.abstract_multicast_receiver.AbstractMulticastReceiver[source]

Bases: spinnman.connections.abstract_classes.abstract_connection.AbstractConnection

A receiver of Multicast messages

Abstract Methods

get_input_chips() Get a list of chips which identify the chips from which this receiver can receive receive packets directly
receive_multicast_message([timeout]) Receives a multicast message from this connection.

Detailed Methods

get_input_chips()[source]

Get a list of chips which identify the chips from which this receiver can receive receive packets directly

Returns:An iterable of tuples of (x, y) where x is the x-coordinate of the chip and y is the y-coordinate of the chip
Return type:iterable of (int, int)
Raises None:No known exceptions are raised
receive_multicast_message(timeout=None)[source]

Receives a multicast message from this connection. Blocks until a message has been received, or a timeout occurs.

Parameters:

timeout (int) – The time in seconds to wait for the message to arrive; if not specified, will wait forever, or until the connection is closed

Returns:

a multicast message

Return type:

spinnman.messages.multicast_message.MulticastMessage

Raises: