public void Connect(int remoteSubsystemID, IPEndPoint remoteAddress) { Subsystem remoteSubsystem = new Subsystem(remoteSubsystemID, remoteAddress); remoteSubsystem.Identification = "UnknownSubsystem"; discoveryService.AddRemoteSubsystem(remoteSubsystemID, remoteSubsystem); JausAddress remoteJausAddress = new JausAddress(remoteSubsystemID, 255, 255); QueryIdentification queryIdentification = new QueryIdentification(); queryIdentification.SetDestination(remoteJausAddress); queryIdentification.SetSource(localJausAddress); Transport.SendMessage(queryIdentification); _eventAggregator.GetEvent <LoggerEvent>().Publish("Attempting to connect..."); }
public void Connect(int remoteSubsystemID, IPEndPoint remoteAddress) { Subsystem remoteSubsystem = new Subsystem(remoteSubsystemID, remoteAddress); remoteSubsystem.Identification = "UnknownSubsystem"; discoveryService.AddRemoteSubsystem(remoteSubsystemID, remoteSubsystem); JausAddress remoteJausAddress = new JausAddress(remoteSubsystemID, 255, 255); QueryIdentification queryIdentification = new QueryIdentification(); queryIdentification.SetDestination(remoteJausAddress); queryIdentification.SetSource(localJausAddress); Transport.SendMessage(queryIdentification); _eventAggregator.GetEvent<LoggerEvent>().Publish("Attempting to connect..."); }