sim_con_ldsc 176 src/simh/sim_console.c TMLN sim_con_ldsc = { 0 }; /* line descr */ sim_con_ldsc 177 src/simh/sim_console.c TMXR sim_con_tmxr = { 1, 0, 0, &sim_con_ldsc, NULL, &sim_con_telnet }; /* line mux */ sim_con_ldsc 189 src/simh/sim_console.c (sim_con_ldsc.serport == 0) && sim_con_ldsc 194 src/simh/sim_console.c sim_con_ldsc.rcve = 1; /* rcv enabled */ sim_con_ldsc 199 src/simh/sim_console.c if (sim_con_ldsc.conn) sim_con_ldsc 200 src/simh/sim_console.c tmxr_send_buffered_data (&sim_con_ldsc); /* try to flush any buffered data */ sim_con_ldsc 467 src/simh/sim_console.c if (sim_con_ldsc.conn) sim_con_ldsc 468 src/simh/sim_console.c tmxr_send_buffered_data (&sim_con_ldsc); /* try to flush any buffered data */ sim_con_ldsc 1276 src/simh/sim_console.c return tmxr_set_line_speed (&sim_con_ldsc, cptr); sim_con_ldsc 1281 src/simh/sim_console.c if (sim_con_ldsc.rxbps) { sim_con_ldsc 1282 src/simh/sim_console.c fprintf (st, "Speed = %ld", (long)sim_con_ldsc.rxbps); sim_con_ldsc 1283 src/simh/sim_console.c if (sim_con_ldsc.rxbpsfactor != TMXR_RX_BPS_UNIT_SCALE) sim_con_ldsc 1284 src/simh/sim_console.c fprintf (st, "*%.0f", sim_con_ldsc.rxbpsfactor/TMXR_RX_BPS_UNIT_SCALE); sim_con_ldsc 1545 src/simh/sim_console.c (sim_con_ldsc.serport == 0)) sim_con_ldsc 1548 src/simh/sim_console.c if (sim_con_ldsc.serport) { sim_con_ldsc 1550 src/simh/sim_console.c tmxr_fconns (st, &sim_con_ldsc, -1); sim_con_ldsc 1553 src/simh/sim_console.c if (sim_con_ldsc.sock == 0) sim_con_ldsc 1557 src/simh/sim_console.c sim_con_tmxr.port, sim_con_ldsc.ipad); sim_con_ldsc 1558 src/simh/sim_console.c tmxr_fconns (st, &sim_con_ldsc, -1); sim_con_ldsc 1560 src/simh/sim_console.c tmxr_fstats (st, &sim_con_ldsc, -1); sim_con_ldsc 1750 src/simh/sim_console.c (!sim_con_ldsc.serport) && sim_con_ldsc 1766 src/simh/sim_console.c if (sim_con_ldsc.serport) sim_con_ldsc 1768 src/simh/sim_console.c sim_con_ldsc.rcve = 1; /* rcv enabled */ sim_con_ldsc 1770 src/simh/sim_console.c (sim_con_ldsc.serport)) sim_con_ldsc 1772 src/simh/sim_console.c if (sim_con_ldsc.conn || sim_con_ldsc.txbfd) { /* connected or buffered ? */ sim_con_ldsc 1774 src/simh/sim_console.c if (sim_con_ldsc.conn || sim_con_ldsc.txbfd) { /* still connected? */ sim_con_ldsc 1775 src/simh/sim_console.c if (!sim_con_ldsc.conn) { sim_con_ldsc 1786 src/simh/sim_console.c sim_con_ldsc.rcve = 1; /* rcv enabled */ sim_con_ldsc 1842 src/simh/sim_console.c if ((sim_con_ldsc.rxbps) && /* rate limiting && */ sim_con_ldsc 1843 src/simh/sim_console.c (sim_gtime () < sim_con_ldsc.rxnexttime)) /* too soon? */ sim_con_ldsc 1851 src/simh/sim_console.c (sim_con_ldsc.serport == 0)) { /* and not serial? */ sim_con_ldsc 1852 src/simh/sim_console.c if (c && sim_con_ldsc.rxbps) /* got something && rate limiting? */ sim_con_ldsc 1853 src/simh/sim_console.c sim_con_ldsc.rxnexttime = /* compute next input time */ sim_con_ldsc 1854 src/simh/sim_console.c floor (sim_gtime () + ((sim_con_ldsc.rxdelta * sim_timer_inst_per_sec ())/sim_con_ldsc.rxbpsfactor)); sim_con_ldsc 1857 src/simh/sim_console.c if (!sim_con_ldsc.conn) { /* no telnet or serial connection? */ sim_con_ldsc 1858 src/simh/sim_console.c if (!sim_con_ldsc.txbfd) /* unbuffered? */ sim_con_ldsc 1861 src/simh/sim_console.c sim_con_ldsc.rcve = 1; /* rcv enabled */ sim_con_ldsc 1867 src/simh/sim_console.c if ((c = (t_stat)tmxr_getc_ln (&sim_con_ldsc))) /* any char? */ sim_con_ldsc 1878 src/simh/sim_console.c (sim_con_ldsc.serport == 0)) { /* and not serial port */ sim_con_ldsc 1883 src/simh/sim_console.c if (!sim_con_ldsc.conn) { /* no Telnet or serial connection? */ sim_con_ldsc 1884 src/simh/sim_console.c if (!sim_con_ldsc.txbfd) /* unbuffered? */ sim_con_ldsc 1887 src/simh/sim_console.c sim_con_ldsc.rcve = 1; /* rcv enabled */ sim_con_ldsc 1889 src/simh/sim_console.c tmxr_putc_ln (&sim_con_ldsc, c); /* output char */