WSMessageReady (C 函数)
int WSMessageReady(WSLINK link)
查询链接对象 link,看链接是否有带外消息.
范例
基本范例 (1)
#include "wstp.h"
/* calculate the sum of the integers in a list and check for a message on a link */
int f(WSLINK lp, int *list, int len)
{
int sum;
while(len--)
{
sum += *list++;
if(WSMessageReady(lp))
{ /* read the message */ }
}
return sum;
}