# class RemoteService

###

Module | dnssd
Namespace | DNSSD
Class | RemoteService
Inherits | QObject,DNSSD::ServiceBase

\class RemoteService remoteservice.h DNSSD/RemoteService

RemoteService class allows to resolve service announced on remote machine. In most cases objects of this class are created by ServiceBrowser, but it is not required. Only fields valid before service is resolved are name, type.and domain.

class representing service announced on remote machine. Author Jakub Stachowski

### methods

- RemoteService (name, type, domain)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  name | QString |
  type | QString |
  domain | QString |

  Creates unresolved remote service with given name, type and domain.

- isResolved ( )

  returns bool

  Returns true if service has been successfully resolved

- resolve ( )

  returns bool

  Synchronous version of resolveAsync(). Note that resolved(bool) is emitted before this function returns, Returns true is successful

- resolveAsync ( )

  returns Nothing

  Resolves host name and port of service. Host name is not resolved into numeric address - use KResolver for that. Signal resolved(bool) will be emitted when finished or even before return of this function - in case of immediate failure.

- resolved (a0)

  returns Nothing
  SIGNAL ("resolved (bool)")

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

  Emitted when resolving is complete. Parameter is set to true if it was successful. If operating in asynchronous mode this signal can be emitted several times (when service change)

- virtual_hook (id, data)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  id | int |
  data | void |