Logo 
Search:

Networking Articles

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

TCP/IP program to do terminal type option subnegotation

Posted By: Milind Mishra     Category: Networking     Views: 1697

TCP/IP program to do terminal type option subnegotation.

Code for TCP/IP program to do terminal type option subnegotation in Networking

#include <sys/types.h>
#include <stdio.h>
#include "telnet.h"externchar    *term;        /* terminal name, from initialization    *//*ARGSUSED*/int
subtermtype(FILE *sfp, FILE *tfp, int c)
{
    /* have received IAC.SB.TERMTYPE.SEND */

    (void) putc(TCIAC, sfp);
    (void) putc(TCSB, sfp);
    (void) putc(TOTERMTYPE, sfp);
    (void) putc(TT_IS, sfp);
    fputs(term, sfp);
    (void) putc(TCIAC, sfp);
    (void) putc(TCSE, sfp);
    return 0;
}
  
Share: 


Didn't find what you were looking for? Find more on TCP/IP program to do terminal type option subnegotation Or get search suggestion and latest updates.

Milind Mishra
Milind Mishra author of TCP/IP program to do terminal type option subnegotation 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!