Initializes a new instance of the NetService class for publishing.
- domain (String)
The domain of the service. For the local domain, use "local." not "".
To us the default domain, simply parse "".
- type (String)
The network service type.
This must include both the transport type ("_tcp." or ".udp") and the service name prefixed with an underscore("_"). For example, to search for an HTTP service on TCP you would use "_http._tcp."
- name (String)
- The name of the service. This name must be unique.
- port (Int32)
- The port number on which your service is available.
This constructor is the appropriate constructor used to publish a service. You can not use this constructor to resolve a service.