The tnet_msg_poll function polls the upper-layer user
application for unsolicited messages. The Telnet session handle
identified with parameter session can be used to identify the
remote host when several Telnet connections are active at the same
time.
If this function returns __TRUE a telnet callback function
is called immediatelly to get the message.
Return Value
The tnet_msg_poll function returns __TRUE when the
upper-layer user application has a pending message to send.
Otherwise, the function returns __FALSE.
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);
}
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.