Logo 
Search:

Networking Articles

Submit Article
Home » Articles » Networking » TCP/IPRSS Feeds

TCP/IP program to handle an unsupported telnet "do/don't" option

Posted By: Milind Mishra     Category: Networking     Views: 2091

TCP/IP program to handle an unsupported telnet "do/don't" option.

Code for TCP/IP program to handle an unsupported telnet "do/don't" option in Networking

#include <sys/types.h>
#include <stdio.h>
#include "telnet.h"/*------------------------------------------------------------------------ * will_notsup - handle an unsupported telnet "do/don't" option *------------------------------------------------------------------------ *//*ARGSUSED*/int
will_notsup(FILE *sfp, FILE *tfp, int c)
{
    (void) putc(TCIAC, sfp);
    (void) putc(TCWONT, sfp);
    (void) putc((char)c, sfp);
    return 0;
}
  
Share: 



Milind Mishra
Milind Mishra author of TCP/IP program to handle an unsupported telnet "do/don't" option is from India.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!