Logo 
Search:

Networking Articles

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

TCP/IP program to disconnect from remote

Posted By: Milind Mishra     Category: Networking     Views: 1990

TCP/IP program to disconnect from remote

Code for TCP/IP program to disconnect from remote in Networking

/* dcon.c - dcon */

#include <stdlib.h>
#include <stdio.h>
#include <termios.h>

#include "local.h"/*ARGSUSED*/int
dcon(FILE *sfp, FILE *tfp, int c)
{
    fprintf(tfp, "disconnecting.\n");
    (void) tcsetattr(0, TCSADRAIN, &oldtty);
    exit(0);
}
  
Share: 


Didn't find what you were looking for? Find more on TCP/IP program to disconnect from remote Or get search suggestion and latest updates.

Milind Mishra
Milind Mishra author of TCP/IP program to disconnect from remote 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!