Exemple #1
0
 /// <summary>
 /// Creates a new instance of a WolHostNetwork object and initializes the object
 /// with the given data.
 /// </summary>
 /// <param name="networkId">The internal Id used to manage the network instance.</param>
 /// /// <param name="name">The common name of the network.</param>
 /// <param name="address">The address to which magic packets will be sent.</param>
 /// <param name="port">The port to which magic packets will be send.</param>
 /// <param name="subnetMask">The subnet mask of the network on which the host is located.</param>
 /// <param name="locality">The locality of the network.</param>
 public WolHostNetwork(Guid networkId, string name, string address, int port, IPAddress subnetMask, NetworkLocality locality)
 {
     this.NetworkId  = networkId;
     this.Name       = name;
     this.Address    = address;
     this.Port       = port;
     this.SubnetMask = subnetMask;
     this.Locality   = locality;
 }
Exemple #2
0
 /// <summary>
 /// Creates a new instance of a WolHostNetwork object and initializes the object
 /// with the given data.
 /// </summary>
 /// <param name="name">The common name of the network.</param>
 /// <param name="address">The address to which magic packets will be sent.</param>
 /// <param name="port">The port to which magic packets will be send.</param>
 /// <param name="subnetMask">The subnet mask of the network on which the host is located.</param>
 /// <param name="locality">The locality of the network.</param>
 public WolHostNetwork(string name, string address, int port, IPAddress subnetMask, NetworkLocality locality)
     : this(Guid.NewGuid(),
            name,
            address,
            port,
            subnetMask,
            locality)
 {
 }