telnet 51 src/dps8/fnptelnet.c static void evHandler (UNUSED telnet_t *telnet, telnet_event_t *event, void *user_data) telnet 102 src/dps8/libtelnet.c #define NEGOTIATE_EVENT(telnet,cmd,opt) \ telnet 105 src/dps8/libtelnet.c (telnet)->eh((telnet), &ev, (telnet)->ud); telnet 174 src/dps8/libtelnet.c static telnet_error_t _error(telnet_t *telnet, unsigned line, telnet 192 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 198 src/dps8/libtelnet.c static void _send(telnet_t *telnet, const char *buffer, telnet 205 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 215 src/dps8/libtelnet.c static __inline__ int _check_telopt(telnet_t *telnet, unsigned char telopt, telnet 220 src/dps8/libtelnet.c if (telnet->telopts == 0) telnet 224 src/dps8/libtelnet.c for (i = 0; telnet->telopts[i].telopt != -1; ++i) { telnet 225 src/dps8/libtelnet.c if (telnet->telopts[i].telopt == telopt) { telnet 226 src/dps8/libtelnet.c if (us && telnet->telopts[i].us == TELNET_WILL) telnet 228 src/dps8/libtelnet.c else if (!us && telnet->telopts[i].him == TELNET_DO) telnet 240 src/dps8/libtelnet.c static __inline__ telnet_rfc1143_t _get_rfc1143(telnet_t *telnet, telnet 246 src/dps8/libtelnet.c for (i = 0; i != telnet->q_cnt; ++i) { telnet 247 src/dps8/libtelnet.c if (telnet->q[i].telopt == telopt) { telnet 248 src/dps8/libtelnet.c return telnet->q[i]; telnet 259 src/dps8/libtelnet.c static __inline__ void _set_rfc1143(telnet_t *telnet, unsigned char telopt, telnet 265 src/dps8/libtelnet.c for (i = 0; i != telnet->q_cnt; ++i) { telnet 266 src/dps8/libtelnet.c if (telnet->q[i].telopt == telopt) { telnet 267 src/dps8/libtelnet.c telnet->q[i].state = (unsigned char) Q_MAKE(us,him); telnet 270 src/dps8/libtelnet.c telnet->flags &= telnet 274 src/dps8/libtelnet.c telnet->flags |= TELNET_FLAG_TRANSMIT_BINARY; telnet 276 src/dps8/libtelnet.c telnet->flags |= TELNET_FLAG_RECEIVE_BINARY; telnet 289 src/dps8/libtelnet.c if (i >= telnet->q_size) { telnet 291 src/dps8/libtelnet.c if ((qtmp = (telnet_rfc1143_t *)realloc(telnet->q, telnet 292 src/dps8/libtelnet.c sizeof(telnet_rfc1143_t) * (telnet->q_size + QUANTUM))) == 0) { telnet 293 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0, telnet 297 src/dps8/libtelnet.c memset(&qtmp[telnet->q_size], 0, sizeof(telnet_rfc1143_t) * QUANTUM); telnet 298 src/dps8/libtelnet.c telnet->q = qtmp; telnet 299 src/dps8/libtelnet.c telnet->q_size += QUANTUM; telnet 302 src/dps8/libtelnet.c telnet->q[telnet->q_cnt].telopt = telopt; telnet 303 src/dps8/libtelnet.c telnet->q[telnet->q_cnt].state = (unsigned char) Q_MAKE(us, him); telnet 304 src/dps8/libtelnet.c telnet->q_cnt ++; telnet 308 src/dps8/libtelnet.c static __inline__ void _send_negotiate(telnet_t *telnet, unsigned char cmd, telnet 314 src/dps8/libtelnet.c _sendu(telnet, bytes, 3); telnet 318 src/dps8/libtelnet.c static void _negotiate(telnet_t *telnet, unsigned char telopt) { telnet 323 src/dps8/libtelnet.c if (telnet->flags & TELNET_FLAG_PROXY) { telnet 324 src/dps8/libtelnet.c switch ((int)telnet->state) { telnet 326 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WILL, telopt); telnet 329 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WONT, telopt); telnet 332 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DO, telopt); telnet 335 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DONT, telopt); telnet 342 src/dps8/libtelnet.c q = _get_rfc1143(telnet, telopt); telnet 345 src/dps8/libtelnet.c switch ((int)telnet->state) { telnet 350 src/dps8/libtelnet.c if (_check_telopt(telnet, telopt, 0)) { telnet 351 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_YES); telnet 352 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DO, telopt); telnet 353 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WILL, telopt); telnet 355 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DONT, telopt); telnet 358 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_NO); telnet 359 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WONT, telopt); telnet 360 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 364 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_YES); telnet 365 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 369 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_YES); telnet 370 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WILL, telopt); telnet 373 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTNO); telnet 374 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DONT, telopt); telnet 375 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WILL, telopt); telnet 384 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_NO); telnet 385 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DONT, telopt); telnet 386 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WONT, telopt); telnet 389 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_NO); telnet 390 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WONT, telopt); telnet 393 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTYES); telnet 394 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DO, telopt); telnet 395 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WONT, telopt); telnet 399 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_NO); telnet 408 src/dps8/libtelnet.c if (_check_telopt(telnet, telopt, 1)) { telnet 409 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_YES, Q_HIM(q)); telnet 410 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WILL, telopt); telnet 411 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DO, telopt); telnet 413 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WONT, telopt); telnet 416 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_NO, Q_HIM(q)); telnet 417 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DONT, telopt); telnet 418 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 422 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_YES, Q_HIM(q)); telnet 423 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 427 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_YES, Q_HIM(q)); telnet 428 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DO, telopt); telnet 431 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTNO, Q_HIM(q)); telnet 432 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WONT, telopt); telnet 433 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DO, telopt); telnet 442 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_NO, Q_HIM(q)); telnet 443 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WONT, telopt); telnet 444 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DONT, telopt); telnet 447 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_NO, Q_HIM(q)); telnet 448 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DONT, telopt); telnet 451 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTYES, Q_HIM(q)); telnet 452 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WILL, telopt); telnet 453 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DONT, telopt); telnet 457 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_NO, Q_HIM(q)); telnet 476 src/dps8/libtelnet.c static int _environ_telnet(telnet_t *telnet, unsigned char type, telnet 492 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 508 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 516 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 523 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 542 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0, telnet 610 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 618 src/dps8/libtelnet.c static int _ttype_telnet(telnet_t *telnet, const char* buffer, size_t size) { telnet 623 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 631 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 642 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0, telnet 652 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 660 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 669 src/dps8/libtelnet.c static int _subnegotiate(telnet_t *telnet) { telnet 674 src/dps8/libtelnet.c ev.sub.telopt = telnet->sb_telopt; telnet 675 src/dps8/libtelnet.c ev.sub.buffer = telnet->buffer; telnet 676 src/dps8/libtelnet.c ev.sub.size = telnet->buffer_pos; telnet 677 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 679 src/dps8/libtelnet.c switch (telnet->sb_telopt) { telnet 683 src/dps8/libtelnet.c return _ttype_telnet(telnet, telnet->buffer, telnet->buffer_pos); telnet 686 src/dps8/libtelnet.c return _environ_telnet(telnet, telnet->sb_telopt, telnet->buffer, telnet 687 src/dps8/libtelnet.c telnet->buffer_pos); telnet 697 src/dps8/libtelnet.c struct telnet_t *telnet = (telnet_t*)calloc(1, sizeof(telnet_t)); telnet 698 src/dps8/libtelnet.c if (telnet == 0) telnet 702 src/dps8/libtelnet.c telnet->ud = user_data; telnet 703 src/dps8/libtelnet.c telnet->telopts = telopts; telnet 704 src/dps8/libtelnet.c telnet->eh = eh; telnet 705 src/dps8/libtelnet.c telnet->flags = flags; telnet 707 src/dps8/libtelnet.c return telnet; telnet 711 src/dps8/libtelnet.c void telnet_free(telnet_t *telnet) { telnet 713 src/dps8/libtelnet.c if (telnet->buffer != 0) { telnet 714 src/dps8/libtelnet.c FREE(telnet->buffer); telnet 715 src/dps8/libtelnet.c telnet->buffer = 0; //-V1048 telnet 716 src/dps8/libtelnet.c telnet->buffer_size = 0; telnet 717 src/dps8/libtelnet.c telnet->buffer_pos = 0; telnet 721 src/dps8/libtelnet.c if (telnet->q) { telnet 722 src/dps8/libtelnet.c FREE(telnet->q); telnet 723 src/dps8/libtelnet.c telnet->q = NULL; telnet 724 src/dps8/libtelnet.c telnet->q_size = 0; telnet 725 src/dps8/libtelnet.c telnet->q_cnt = 0; telnet 729 src/dps8/libtelnet.c free(telnet); telnet 733 src/dps8/libtelnet.c static telnet_error_t _buffer_byte(telnet_t *telnet, telnet 738 src/dps8/libtelnet.c if (telnet->buffer_pos == telnet->buffer_size) { telnet 742 src/dps8/libtelnet.c if (_buffer_sizes[i] == telnet->buffer_size) { telnet 749 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EOVERFLOW, 0, telnet 755 src/dps8/libtelnet.c new_buffer = (char *)realloc(telnet->buffer, _buffer_sizes[i + 1]); telnet 757 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0, telnet 762 src/dps8/libtelnet.c telnet->buffer = new_buffer; telnet 763 src/dps8/libtelnet.c telnet->buffer_size = _buffer_sizes[i + 1]; telnet 767 src/dps8/libtelnet.c telnet->buffer[telnet->buffer_pos++] = (char) byte; telnet 771 src/dps8/libtelnet.c static void _process(telnet_t *telnet, const char *buffer, size_t size) { telnet 777 src/dps8/libtelnet.c switch (telnet->state) { telnet 787 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 789 src/dps8/libtelnet.c telnet->state = TELNET_STATE_IAC; telnet 791 src/dps8/libtelnet.c (telnet->flags & TELNET_FLAG_NVT_EOL) && telnet 792 src/dps8/libtelnet.c !(telnet->flags & TELNET_FLAG_RECEIVE_BINARY)) { telnet 797 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 799 src/dps8/libtelnet.c telnet->state = TELNET_STATE_EOL; telnet 810 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 819 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DATA; telnet 827 src/dps8/libtelnet.c telnet->state = TELNET_STATE_SB; telnet 831 src/dps8/libtelnet.c telnet->state = TELNET_STATE_WILL; telnet 834 src/dps8/libtelnet.c telnet->state = TELNET_STATE_WONT; telnet 837 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DO; telnet 840 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DONT; telnet 848 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 852 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DATA; telnet 859 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 863 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DATA; telnet 872 src/dps8/libtelnet.c _negotiate(telnet, byte); telnet 874 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DATA; telnet 879 src/dps8/libtelnet.c telnet->sb_telopt = byte; telnet 880 src/dps8/libtelnet.c telnet->buffer_pos = 0; telnet 881 src/dps8/libtelnet.c telnet->state = TELNET_STATE_SB_DATA; telnet 888 src/dps8/libtelnet.c telnet->state = TELNET_STATE_SB_DATA_IAC; telnet 889 src/dps8/libtelnet.c } else if (_buffer_byte(telnet, byte) != TELNET_EOK) { telnet 891 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DATA; telnet 902 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DATA; telnet 905 src/dps8/libtelnet.c if (_subnegotiate(telnet) != 0) { telnet 906 src/dps8/libtelnet.c telnet_recv(telnet, &buffer[start], size - start); telnet 913 src/dps8/libtelnet.c if (_buffer_byte(telnet, TELNET_IAC) != telnet 916 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DATA; telnet 918 src/dps8/libtelnet.c telnet->state = TELNET_STATE_SB_DATA; telnet 926 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 932 src/dps8/libtelnet.c telnet->state = TELNET_STATE_IAC; telnet 937 src/dps8/libtelnet.c if (_subnegotiate(telnet) != 0) { telnet 938 src/dps8/libtelnet.c telnet_recv(telnet, &buffer[start], size - start); telnet 945 src/dps8/libtelnet.c _process(telnet, (char *)&byte, 1); telnet 954 src/dps8/libtelnet.c if (telnet->state == TELNET_STATE_DATA && i != start) { telnet 958 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 963 src/dps8/libtelnet.c void telnet_recv(telnet_t *telnet, const char *buffer, telnet 965 src/dps8/libtelnet.c _process(telnet, buffer, size); telnet 969 src/dps8/libtelnet.c void telnet_iac(telnet_t *telnet, unsigned char cmd) { telnet 973 src/dps8/libtelnet.c _sendu(telnet, bytes, 2); telnet 977 src/dps8/libtelnet.c void telnet_negotiate(telnet_t *telnet, unsigned char cmd, telnet 982 src/dps8/libtelnet.c if (telnet->flags & TELNET_FLAG_PROXY) { telnet 987 src/dps8/libtelnet.c _sendu(telnet, bytes, 3); telnet 992 src/dps8/libtelnet.c q = _get_rfc1143(telnet, telopt); telnet 999 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTYES, Q_HIM(q)); telnet 1000 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WILL, telopt); telnet 1003 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTNO_OP, Q_HIM(q)); telnet 1006 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTYES, Q_HIM(q)); telnet 1015 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTNO, Q_HIM(q)); telnet 1016 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WONT, telopt); telnet 1019 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTYES_OP, Q_HIM(q)); telnet 1022 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTNO, Q_HIM(q)); telnet 1031 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTYES); telnet 1032 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DO, telopt); telnet 1035 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTNO_OP); telnet 1038 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTYES); telnet 1047 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTNO); telnet 1048 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DONT, telopt); telnet 1051 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTYES_OP); telnet 1054 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTNO); telnet 1062 src/dps8/libtelnet.c void telnet_send(telnet_t *telnet, const char *buffer, telnet 1071 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); telnet 1076 src/dps8/libtelnet.c telnet_iac(telnet, TELNET_IAC); telnet 1082 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); telnet 1087 src/dps8/libtelnet.c void telnet_send_text(telnet_t *telnet, const char *buffer, telnet 1096 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); telnet 1101 src/dps8/libtelnet.c telnet_iac(telnet, TELNET_IAC); telnet 1104 src/dps8/libtelnet.c else if (!(telnet->flags & TELNET_FLAG_TRANSMIT_BINARY) && telnet 1108 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); telnet 1114 src/dps8/libtelnet.c _send(telnet, CRNUL, 2); telnet 1118 src/dps8/libtelnet.c _send(telnet, CRLF, 2); telnet 1125 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); telnet 1130 src/dps8/libtelnet.c void telnet_begin_sb(telnet_t *telnet, unsigned char telopt) { telnet 1135 src/dps8/libtelnet.c _sendu(telnet, sb, 3); telnet 1139 src/dps8/libtelnet.c int telnet_vprintf(telnet_t *telnet, const char *fmt, va_list va) { telnet 1151 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0, telnet 1168 src/dps8/libtelnet.c _send(telnet, output + l, (size_t) (i - l)); telnet 1173 src/dps8/libtelnet.c telnet_iac(telnet, TELNET_IAC); telnet 1176 src/dps8/libtelnet.c _send(telnet, CRNUL, 2); telnet 1179 src/dps8/libtelnet.c _send(telnet, CRLF, 2); telnet 1185 src/dps8/libtelnet.c _send(telnet, output + l, (size_t) (i - l)); telnet 1197 src/dps8/libtelnet.c int telnet_printf(telnet_t *telnet, const char *fmt, ...) { telnet 1202 src/dps8/libtelnet.c rs = telnet_vprintf(telnet, fmt, va); telnet 1209 src/dps8/libtelnet.c int telnet_raw_vprintf(telnet_t *telnet, const char *fmt, va_list va) { telnet 1221 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0, telnet 1232 src/dps8/libtelnet.c telnet_send(telnet, output, (size_t) rs); telnet 1243 src/dps8/libtelnet.c int telnet_raw_printf(telnet_t *telnet, const char *fmt, ...) { telnet 1248 src/dps8/libtelnet.c rs = telnet_raw_vprintf(telnet, fmt, va); telnet 336 src/dps8/libtelnet.h typedef void (*telnet_event_handler_t)(telnet_t *telnet, telnet 378 src/dps8/libtelnet.h extern void telnet_free(telnet_t *telnet); telnet 392 src/dps8/libtelnet.h extern void telnet_recv(telnet_t *telnet, const char *buffer, telnet 401 src/dps8/libtelnet.h extern void telnet_iac(telnet_t *telnet, unsigned char cmd); telnet 414 src/dps8/libtelnet.h extern void telnet_negotiate(telnet_t *telnet, unsigned char cmd, telnet 424 src/dps8/libtelnet.h extern void telnet_send(telnet_t *telnet, telnet 435 src/dps8/libtelnet.h extern void telnet_send_text(telnet_t *telnet, telnet 448 src/dps8/libtelnet.h extern void telnet_begin_sb(telnet_t *telnet, telnet 459 src/dps8/libtelnet.h # define telnet_finish_sb(telnet) telnet_iac((telnet), TELNET_SE) telnet 475 src/dps8/libtelnet.h extern int telnet_printf(telnet_t *telnet, const char *fmt, ...) telnet 483 src/dps8/libtelnet.h extern int telnet_vprintf(telnet_t *telnet, const char *fmt, va_list va); telnet 496 src/dps8/libtelnet.h extern int telnet_raw_printf(telnet_t *telnet, const char *fmt, ...) telnet 504 src/dps8/libtelnet.h extern int telnet_raw_vprintf(telnet_t *telnet, const char *fmt, va_list va); telnet 428 src/dps8/uvutil.c static void evHandler (UNUSED telnet_t *telnet, telnet_event_t *event,