[Cover] [Previous Section] [Next Section] [Index]
Current chapter: C++ Notification Library Reference
Section 33 out of 79 total sections
, Section 3 out of 5 sections in this chapter
Non-secure notification (TNtfnClient) class
The TNtfnClient class is derived from the abstract base class described in Abstract base notification class (TNtfnClientAPI). You use it to send non-secure notifications. It uses a non-secure transport protocol based on HTTP.
The public interface of the TNtfnClient class is defined as follows:
class TNtfnClient: public TNtfnClientAPI
{
public:
TNtfnClient (const char *msgrHost,
unsigned short upnotifypPort = 0);
};
where:
msgrHost
|
The domain of the UP.Link server host to send notifications to.
|
upnotifypPort
|
The port on the UP.Link server host to connect with. If you specify 0, the default port is used. Unwired Planet strongly recommends that you use the default port.
|
The constructor for TNtfnClient does not establish a network connection with the UP.Link server; the API automatically connects each time it needs to--when you call a method inherited from the TNtfnClientAPI base class to perform an operation such as posting, querying, or deleting a notification.
[Cover] [Previous Section] [Next Section] [Index]
Current chapter: C++ Notification Library Reference
Section 33 out of 79 total sections
, Section 3 out of 5 sections in this chapter
Copyright © 1999, Unwired Planet, Inc. All rights
reserved.