Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
轮询服务器,提示通告程序检查高速缓存中是否有推式请求。
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 )
notifier 通告程序的名称。
key 标识 MobiLink 监听器的轮询键的名称。
subject 接收消息主题的缓冲区。(以空值终止)
subjectSize IN:主题缓冲区的大小。
OUT:所接收主题的大小,包括空终止符,其中零表示空主题。
content 接收消息内容的缓冲区。(以空值终止)
contentSize IN:内容缓冲区的大小。
OUT:所接收内容的大小,包括空终止符,其中零表示空内容。
return_code 枚举中列出的代码之一。 请参见return_code 枚举。
MobiLink 监听器连接到通告程序,然后在通告程序检查其高速缓存中是否有指定用于给定轮询键的推式通知后断开连接。