Zeroconf::CServiceType Class Reference
A description of an advertised service type on the local network. More...
#include <zeroconfservicetype.h>
Public Member Functions | |
| const TDesC & | ServiceTypeName () const |
| Returns a unicode descriptor containing the name of the service type. | |
| TServiceProtocol | ServiceProtocol () const |
| Returns the protocol the service runs over. | |
| const TDesC & | FullyQualifiedName () const |
| Returns a unicode descriptor containing fully qualified name of the service type. | |
| ~CServiceType () | |
| Frees any memory associated with the service type description. | |
Static Public Member Functions | |
| static CServiceType * | NewLC (RReadStream &aReadStream) |
| Constructs a new service type description from a read stream. | |
Protected Member Functions | |
| CServiceType () | |
| Constructs a new, empty service type description. | |
Protected Attributes | |
| HBufC * | iTypeName |
| TServiceProtocol | iProtocol |
| HBufC * | iFullyQualifiedName |
Detailed Description
A description of an advertised service type on the local network.A description of an advertised service type on the local area network. This class provides the name of the service and the protocol it runs over (TCP or UDP) together with any additional parameters provided by the advertiser.
Constructor & Destructor Documentation
| Zeroconf::CServiceType::~CServiceType | ( | ) |
Frees any memory associated with the service type description.
Frees any memory associated with the service type description.
| Zeroconf::CServiceType::CServiceType | ( | ) | [protected] |
Constructs a new, empty service type description.
Constructs a new, empty service type description.
Member Function Documentation
| static CServiceType* Zeroconf::CServiceType::NewLC | ( | RReadStream & | aReadStream | ) | [static] |
Constructs a new service type description from a read stream.
Constructs a new service type description from a read stream.
- Parameters:
-
aReadStream The stream to read the externalised description from.
- Returns:
- The fully constructed service type.
| const TDesC& Zeroconf::CServiceType::ServiceTypeName | ( | ) | const |
Returns a unicode descriptor containing the name of the service type.
Returns a unicode descriptor containing the name of the service type. The name includes the leading underscore (e.g. '_http'.)
- Returns:
- A unicode descriptor containing the service type name.
| TServiceProtocol Zeroconf::CServiceType::ServiceProtocol | ( | ) | const |
Returns the protocol the service runs over.
Returns the protocol the service runs over. This will be one of TCP or UDP.
- Returns:
- The protocol the service runs over.
| const TDesC& Zeroconf::CServiceType::FullyQualifiedName | ( | ) | const |
Returns a unicode descriptor containing fully qualified name of the service type.
Returns the fully qualified name of the service type as a unicode descriptor. This will include the service name, its type and the top level domain (e.g. '_http._tcp.local'.)
The fully qualified name of the service type.
