Exemplo n.º 1
0
 public static DiscoveredDevice Parse(ISCPMessage message, EndPoint from)
 {
     string[] Parts = message.Parameters.Split('/');
     return(new DiscoveredDevice {
         ModelName = Parts[0],
         PortNumber = Int32.Parse(Parts[1]),
         MacAddress = Parts[3],
         IpAddress = ((IPEndPoint)from).Address.ToString()
     });
 }
Exemplo n.º 2
0
 public ISCPPacket(ISCPMessage message) => this.Message = message;