Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
Polls the server, prompting a Notifier to check a cache for push requests.
public virtual return_code MLLightPoller::Poll(
const char * notifier,
const char * key,
char * subject = 0,
size_t * subjectSize = 0,
char * content = 0,
size_t * contentSize = 0
The name of the Notifier.
The name of the poll key identifying the MobiLink Listener.
The buffer to receive a message subject. (null-terminated)
IN: The size of the subject buffer.
OUT: The size of the received subject, including a null-terminator, where zero indicates a null subject.
The buffer to receive message content. (null-terminated)
IN: The size of the content buffer.
OUT: The size of the received content, including a null-terminator, where zero indicates null content.
One of the codes listed in the return_code enumeration. See return_code enumeration.
The MobiLink Listener connects to the Notifier, then disconnects after the Notifier checks its cache for a push notification
targeted for the given poll key.