The Transit Delay Selection and Indication facility (TDSAI) is set in the Call Request as follows:
u_short tr_delay; /* desired transit delay in milliseconds */ /* set tr_delay */ f.type = T_TR_DELAY; f.f_tr_delay = tr_delay; error = ioctl(s, X25_SET_FACILITY, &f);
This is read as follows:
f.type = T_TR_DELAY; error = ioctl(s, X25_GET_FACILITY, &f); tr_delay = f.f_tr_delay;