netbsdsrc/usr.bin/tn3270/api/api_exch.c
/*
 * Send the exch structure, updating the sequnce number field.
 */
Send the exch structure, updating the sequnce number field.
Send the exch structure updating the sequnce number field .
static int
send_state()
{
    if (OBUFROOM() < sizeof exch_state) {
	if (outflush() == -1) {
	    return -1;
	}
    }
    my_sequence = (my_sequence+1)&0xff;
    exch_state.my_sequence = my_sequence;
    exch_state.your_sequence = your_sequence;
    OBUFADDBYTES((char *)&exch_state, sizeof exch_state);
    return 0;
}
static int send_state ( ) { if ( OBUFROOM ( ) < sizeof exch_state ) { if ( outflush ( ) == -1 ) { return -1 ; } } my_sequence = ( my_sequence + 1 ) & 0xff ; exch_state . my_sequence = my_sequence ; exch_state . your_sequence = your_sequence ; OBUFADDBYTES ( ( char * ) & exch_state , sizeof exch_state ) ; return 0 ; }
Send the exch structure, updating the sequnce number field.
Send the exch structure updating the sequnce number field .