public MulticastSsdpSocket(NetworkInterfaceInfo networkInterfaceInfo) : base(networkInterfaceInfo.Address) { SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, true); SetSocketOption(SocketOptionLevel.IP, SocketOptionName.MulticastTimeToLive, Protocol.SocketTtl); SetSocketOption(SocketOptionLevel.IP, SocketOptionName.AddMembership, new MulticastOption(Protocol.IPAddress, networkInterfaceInfo.Index)); }
public Client (NetworkInterface networkInterface) { network_interface_info = NetworkInterfaceInfo.GetNetworkInterfaceInfo (networkInterface); service_cache = new ServiceCache (this); notify_listener = new NotifyListener (this); browsers = new Dictionary<string, Browser> (); }
public MulticastSsdpSocket (NetworkInterfaceInfo networkInterfaceInfo) : base (networkInterfaceInfo.Address) { SetSocketOption (SocketOptionLevel.Socket, SocketOptionName.Broadcast, true); SetSocketOption (SocketOptionLevel.IP, SocketOptionName.MulticastTimeToLive, Protocol.SocketTtl); SetSocketOption (SocketOptionLevel.IP, SocketOptionName.AddMembership, new MulticastOption (Protocol.IPAddress, networkInterfaceInfo.Index)); }
public Server (string defaultLocation, NetworkInterface networkInterface) { default_location = defaultLocation; network_interface_info = NetworkInterfaceInfo.GetNetworkInterfaceInfo (networkInterface); request_listener = new RequestListener (this); announcers = new Dictionary<string, Announcer> (); }