Assembly: Sandbox.Common.dll

public interface IMyIntergridCommunicationSystem

This is the entry point for all communication operations.

Properties

Member Description
Me Gets communication address for current programmable block.
UnicastListener Gets unicast listener for current programmable block.

Methods

Member Description
DisableBroadcastListener(IMyBroadcastListener) Disables given broadcast listener. In case given broadcast listener is not active nothing happens. Instance of this broadcast listener remains valid and all pending messages may be accepted as normal. Disabling broadcast listener also disables it's message callback, if active. Consuming the last pending message will permanently disable the provided listener and it's never going to be activated again. ==> Registering new broadcast lister with the same tag will allocate new listener instance instead.
GetBroadcastListeners(List, Func<IMyBroadcastListener, bool>) Retrieves list of all active broadcast listeners and listeners with pending messages, registered by current programmable block. Returned list is snapshot of current state and is not updated by future operations.
IsEndpointReachable(long, TransmissionDistance) Determines if given endpoint is currently reachable. Similar to sending ICMP message.
RegisterBroadcastListener(string) Registers broadcast listener with given tag for current programmable block. In case there is already another active broadcast lister with given tag new listener is NOT registered and the already active one is returned instead.
SendBroadcastMessage(string, TData, TransmissionDistance)
SendUnicastMessage(long, string, TData)