Previous topic

spinnman.connections.udp_packet_connections.eieio_command_connection module

Next topic

spinnman.connections.udp_packet_connections.reverse_iptag_connection module

This Page

spinnman.connections.udp_packet_connections.iptag_connection module

class spinnman.connections.udp_packet_connections.iptag_connection.IPTagConnection(local_host=None, local_port=None, remote_host=None, remote_port=54321)[source]

Bases: spinnman.connections.abstract_classes.abstract_udp_connection.AbstractUDPConnection, spinnman.connections.abstract_classes.udp_receivers.abstract_udp_scp_receiver.AbstractUDPSCPReceiver, spinnman.connections.abstract_classes.udp_receivers.abstract_udp_sdp_receiver.AbstractUDPSDPReceiver, spinnman.connections.abstract_classes.abstract_callbackable_connection.AbstractCallbackableConnection

Parameters:
  • local_host (str) – The local host name or ip address to bind to. If not specified defaults to bind to all interfaces, unless remote_host is specified, in which case binding is _done to the ip address that will be used to send packets
  • local_port (int) – The local port to bind to, between 1025 and 65535. If not specified, defaults to a random unused local port
  • remote_host (str) – The remote host name or ip address to send packets to. If not specified, the socket will be available for listening only, and will throw and exception if used for sending
  • remote_port – The remote port to send packets to. If remote_host is None, this is ignored.
Raises spinnman.exceptions.SpinnmanIOException:
 

If there is an error setting up the communication channel

Attributes

can_send a helper property method to check if this connection can send
local_ip_address The local IP address to which the connection is bound.
local_port The local port to which the connection is bound.
remote_ip_address The remote ip address to which the connection is connected.
remote_port The remote port to which the connection is connected.

Methods

close()
connection_type()
deregister_callback(callback)
is_scp_receiver()
is_sdp_reciever()
is_udp_scp_receiver()
is_udp_sdp_reciever()
register_callback(callback, traffic_type)
supports_sends_message(message)

Detailed Methods

close()[source]
connection_type()[source]
deregister_callback(callback)[source]
is_scp_receiver()[source]
is_sdp_reciever()[source]
is_udp_scp_receiver()[source]
is_udp_sdp_reciever()[source]
register_callback(callback, traffic_type)[source]
supports_sends_message(message)[source]