Logo 
Search:

Networking Articles

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

TCP/IP program to do option subnegotiation FSM transitions

Posted By: Milind Mishra     Category: Networking     Views: 2231

TCP/IP program to do option subnegotiation FSM transitions.

Code for TCP/IP program to do option subnegotiation FSM transitions in Networking

#include <sys/types.h>
#include <stdio.h>
#include "telnet.h"
#include "tnfsm.h"externstruct fsm_trans    substab[];
externint        substate;
extern u_char        subfsm[][NCHRS];

int
subopt(FILE *sfp, FILE *tfp, int c)
{
    struct    fsm_trans    *pt;
    int            ti;

    ti = subfsm[substate][c];
    pt = &substab[ti];
    (pt->ft_action)(sfp, tfp, c);
    substate = pt->ft_next;
    return 0;
}
  
Share: 


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

Milind Mishra
Milind Mishra author of TCP/IP program to do option subnegotiation FSM transitions 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!