// - IP address private void InterpreteIPAddress(string data) { string remoteIP = EncodeUtilities.InterpreteIPAddress(data); #if DEBUG DebugUtilities.UniversalDebug(this.sourceName, "Remote IP: " + remoteIP); #endif // TODO: Add ip integrity check // TODO: Should not be stored in udp sender. UDPSendComponent sender = gameObject.GetComponent <UDPSendComponent>(); sender.remoteIP = remoteIP; UDPReceiveComponent.flagUICommunicationStarted = true; // Inform UI Manager. ParameterUIMenu.instance.OnValueChanged(); }
// - IP address private void InterpreteIPAddress(string data) { string remoteIP = EncodeUtilities.InterpreteIPAddress(data); #if DEBUG DebugUtilities.UniversalDebug(this.sourceName, "Remote IP: " + remoteIP); #endif // TODO: Add ip integrity check // - UDP // TODO: Should not be stored in udp sender. UDPSendComponent udpSender = gameObject.GetComponent <UDPSendComponent>(); if (udpSender != null) { udpSender.remoteIP = remoteIP; UDPReceiveComponent.flagUICommunicationStarted = true; // Inform UI Manager. ParameterUIMenu.instance.OnValueChanged(); } // - TCP TCPSendComponent tcpSender = gameObject.GetComponent <TCPSendComponent>(); #if DEBUG DebugUtilities.UniversalDebug(this.sourceName, "Tcp sender found. Sending mesh to: " + remoteIP); #endif if (tcpSender != null) { tcpSender.UpdateIP(remoteIP); // byte[] environmentData = ObjectManager.instance.EnvironmentMesh(); // // Echo Environment Mesh // if (environmentData != null) { // tcpSender.remoteIP = remoteIP; // tcpSender.SendMesh(environmentData); // UDPReceiveComponent.flagEnvironmentSent = true; // } } }