private void SetupBroker() { //Port List Reply EndpointList.Reply portListReply = new EndpointList.Reply(); portListReply.EndpointIDs = new List <short>() { 1, 2, 3, 4 }; broker.RegisterResponse(RdmParameters.EndpointList, portListReply); }
private void ProcessEndpointList(IPEndPoint endpoint, RdmPacket packet) { EndpointList.Reply reply = packet as EndpointList.Reply; if (reply != null) { foreach (int endpointId in reply.EndpointIDs) { RdmNetEndPoint target = new RdmNetEndPoint(endpoint, endpointId) { Id = packet.Header.SourceId }; RegisterEndpoint(target); NewEndpointFound(this, EventArgs.Empty); InterogateEndpoint(packet.Header.SourceId, target); } } }
private void ProcessEndpointList(IPEndPoint endpoint, RdmPacket packet) { EndpointList.Reply reply = packet as EndpointList.Reply; if (reply != null) { foreach (int endpointId in reply.EndpointIDs) { RdmEndPoint target = new RdmEndPoint(endpoint, endpointId) { Id = packet.Header.SourceId }; DiscoveredEndpoints.Add(target); EndpointDevices.Get request = new EndpointDevices.Get(); request.EndpointID = (short)endpointId; if (Socket != null) { Socket.SendRdm(request, new RdmEndPoint(endpoint, 0), packet.Header.SourceId); } } } }