/// <summary> /// Initializes a new instance of the SoapOverUdp class. /// </summary> /// <param name="multicastAddress">The multicast address</param> /// <param name="multicastPort">The multicast port</param> public SoapOverUdp(string multicastAddress, int multicastPort) { this.client = GetUdpClient(); this.sender = new UdpSender(this.client); this.unicastListener = new UnicastListener(this.client); this.unicastListener.UnicastMsgArrived += new UnicastListener.UnicastMessageArrived(this.UnicastListenerMessageArrived); this.multicastListener = new MulticastListener(multicastAddress, multicastPort); this.multicastListener.MulticastMsgArrived += new MulticastListener.MulticastMessageArrived(this.MulticastListener_multicastMsgArrived); }