The tnet_msg_poll function polls the upper-layer user
application for unsolicited messages. The Telnet session handle
parameter session can be used to identify the remote host when
many Telnet connections are active at the same time.
Return Value
__TRUE = the upper-layer user application has a pending
message to send. A telnet callback function is called immediately
to get the message.
BOOL tnet_msg_poll (U8 session) {
/* Poll for Unsolicited Messages from Server. Return TRUE to the Telnet */
/* Server when messages are available for the telnet 'session'. */
if (session != 1) {
/* Only 1st session may receive Unsolicited Messages. */
return (__FALSE);
}
if (send_msg == __TRUE) {
send_msg = __FALSE;
/* Yes, message is available. */
return (__TRUE);
}
/* No messages available. */
return (__FALSE);
}
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.