Logo 
Search:

Networking Articles

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

TCP/IP program to handle the telnet "DATA MARK" command and receive urgent data input

Posted By: Milind Mishra     Category: Networking     Views: 2490

TCP/IP program to handle the telnet "DATA MARK" command and receive urgent data input.

Code for TCP/IP program to handle the telnet "DATA MARK" command and receive urgent data input in Networking

#include <stdio.h>

char    synching;    /* non-zero, if we are doing telnet SYNCH    *//*------------------------------------------------------------------------ * tcdm - handle the telnet "DATA MARK" command (marks end of SYNCH) *------------------------------------------------------------------------ *//*ARGSUSED*/int
tcdm(FILE *sfp, FILE *tfp, int c)
{
    if (synching > 0)
        synching--;
    return 0;
}

/*------------------------------------------------------------------------ * rcvurg - receive urgent data input (indicates a telnet SYNCH) *------------------------------------------------------------------------ *//*ARGSUSED*/int
rcvurg(int sig)
{
    synching++;
}
  
Share: 



Milind Mishra
Milind Mishra author of TCP/IP program to handle the telnet "DATA MARK" command and receive urgent data input 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!