Logo 
Search:

Networking Articles

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

TCP/IP program of don't do telnet Go-Ahead's

Posted By: Milind Mishra     Category: Networking     Views: 1675

TCP/IP program of don't do telnet Go-Ahead's

Code for TCP/IP program of don't do telnet Go-Ahead's in Networking

#include <sys/types.h>
#include <stdio.h>
#include "telnet.h"extern u_char    option_cmd;

/*ARGSUSED*/int
do_noga(FILE *sfp, FILE *tfp, int c)
{
    static    noga;

    if (noga) {
        if (option_cmd == TCWILL)
            return 0;
    } elseif (option_cmd == TCWONT)
        return 0;
    noga = !noga;
    (void) putc(TCIAC, sfp);
    if (noga)
        (void) putc(TCDO, sfp);
    else
        (void) putc(TCDONT, sfp);
    (void) putc((char)c, sfp);
    return 0;
}
  
Share: 


Didn't find what you were looking for? Find more on TCP/IP program of don't do telnet Go-Ahead's Or get search suggestion and latest updates.

Milind Mishra
Milind Mishra author of TCP/IP program of don't do telnet Go-Ahead's 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!