Esempio n. 1
0
            private void ServerKeepAlive(long id)
            {
                P.Echo($"Processing SERVERKEEPALIVE: {id}");

                if (id != serverEndPoint)
                {
                    endpointChangedCallback?.Invoke();
                    serverEndPoint = id;
                }

                lastKeepAlivePingTime = time.Time;
                comms.SendUnicastMessage(id, "ReturnKeepAlive", MyId);
                comms.SendUnicastMessage(id, "ReturnPosition", me.GetPosition());
            }
Esempio n. 2
0
 public static void SendUnicast <TData>(this IMyIntergridCommunicationSystem igc, long dest, Command <TData> cmd)
 {
     igc.SendUnicastMessage(dest, cmd.Tag, cmd.Serialize());
 }
 void SendPong(long address)
 {
     IGC.SendUnicastMessage(address, "ping", true);
 }
 public void sendMessage(String message, long id)
 {
     igc.SendUnicastMessage <string>(id, "", message);
 }
 private bool AttemptSending(string message) => ((Channel == null) ? false : igc.SendUnicastMessage(ShipID, "ship", message));