telnet 48 src/dps8/fnptelnet.c static void evHandler (UNUSED telnet_t *telnet, telnet_event_t *event, void *user_data) telnet 95 src/dps8/libtelnet.c #define NEGOTIATE_EVENT(telnet,cmd,opt) \ telnet 98 src/dps8/libtelnet.c (telnet)->eh((telnet), &ev, (telnet)->ud); telnet 167 src/dps8/libtelnet.c static telnet_error_t _error(telnet_t *telnet, unsigned line, telnet 185 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 191 src/dps8/libtelnet.c static void _send(telnet_t *telnet, const char *buffer, telnet 198 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 210 src/dps8/libtelnet.c static __inline__ int _check_telopt(telnet_t *telnet, unsigned char telopt, telnet 215 src/dps8/libtelnet.c if (telnet->telopts == 0) telnet 219 src/dps8/libtelnet.c for (i = 0; telnet->telopts[i].telopt != -1; ++i) { telnet 220 src/dps8/libtelnet.c if (telnet->telopts[i].telopt == telopt) { telnet 221 src/dps8/libtelnet.c if (us && telnet->telopts[i].us == TELNET_WILL) telnet 223 src/dps8/libtelnet.c else if (!us && telnet->telopts[i].him == TELNET_DO) telnet 235 src/dps8/libtelnet.c static __inline__ telnet_rfc1143_t _get_rfc1143(telnet_t *telnet, telnet 241 src/dps8/libtelnet.c for (i = 0; i != telnet->q_cnt; ++i) { telnet 242 src/dps8/libtelnet.c if (telnet->q[i].telopt == telopt) { telnet 243 src/dps8/libtelnet.c return telnet->q[i]; telnet 254 src/dps8/libtelnet.c static __inline__ void _set_rfc1143(telnet_t *telnet, unsigned char telopt, telnet 260 src/dps8/libtelnet.c for (i = 0; i != telnet->q_cnt; ++i) { telnet 261 src/dps8/libtelnet.c if (telnet->q[i].telopt == telopt) { telnet 262 src/dps8/libtelnet.c telnet->q[i].state = (unsigned char) Q_MAKE(us,him); telnet 265 src/dps8/libtelnet.c telnet->flags &= telnet 269 src/dps8/libtelnet.c telnet->flags |= TELNET_FLAG_TRANSMIT_BINARY; telnet 271 src/dps8/libtelnet.c telnet->flags |= TELNET_FLAG_RECEIVE_BINARY; telnet 286 src/dps8/libtelnet.c if (i >= telnet->q_size) { telnet 288 src/dps8/libtelnet.c if ((qtmp = (telnet_rfc1143_t *)realloc(telnet->q, telnet 289 src/dps8/libtelnet.c sizeof(telnet_rfc1143_t) * (telnet->q_size + QUANTUM))) == 0) { telnet 290 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0, telnet 294 src/dps8/libtelnet.c (void)memset(&qtmp[telnet->q_size], 0, sizeof(telnet_rfc1143_t) * QUANTUM); telnet 295 src/dps8/libtelnet.c telnet->q = qtmp; telnet 296 src/dps8/libtelnet.c telnet->q_size += QUANTUM; telnet 299 src/dps8/libtelnet.c telnet->q[telnet->q_cnt].telopt = telopt; telnet 300 src/dps8/libtelnet.c telnet->q[telnet->q_cnt].state = (unsigned char) Q_MAKE(us, him); telnet 301 src/dps8/libtelnet.c telnet->q_cnt ++; telnet 305 src/dps8/libtelnet.c static __inline__ void _send_negotiate(telnet_t *telnet, unsigned char cmd, telnet 311 src/dps8/libtelnet.c _sendu(telnet, bytes, 3); telnet 315 src/dps8/libtelnet.c static void _negotiate(telnet_t *telnet, unsigned char telopt) { telnet 320 src/dps8/libtelnet.c if (telnet->flags & TELNET_FLAG_PROXY) { telnet 321 src/dps8/libtelnet.c switch ((int)telnet->state) { telnet 323 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WILL, telopt); telnet 326 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WONT, telopt); telnet 329 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DO, telopt); telnet 332 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DONT, telopt); telnet 339 src/dps8/libtelnet.c q = _get_rfc1143(telnet, telopt); telnet 342 src/dps8/libtelnet.c switch ((int)telnet->state) { telnet 347 src/dps8/libtelnet.c if (_check_telopt(telnet, telopt, 0)) { telnet 348 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_YES); telnet 349 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DO, telopt); telnet 350 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WILL, telopt); telnet 352 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DONT, telopt); telnet 355 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_NO); telnet 356 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WONT, telopt); telnet 357 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 361 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_YES); telnet 362 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 366 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_YES); telnet 367 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WILL, telopt); telnet 370 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTNO); telnet 371 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DONT, telopt); telnet 372 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WILL, telopt); telnet 381 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_NO); telnet 382 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DONT, telopt); telnet 383 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WONT, telopt); telnet 386 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_NO); telnet 387 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WONT, telopt); telnet 390 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTYES); telnet 391 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DO, telopt); telnet 392 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WONT, telopt); telnet 396 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_NO); telnet 405 src/dps8/libtelnet.c if (_check_telopt(telnet, telopt, 1)) { telnet 406 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_YES, Q_HIM(q)); telnet 407 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WILL, telopt); telnet 408 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DO, telopt); telnet 410 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WONT, telopt); telnet 413 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_NO, Q_HIM(q)); telnet 414 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DONT, telopt); telnet 415 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 419 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_YES, Q_HIM(q)); telnet 420 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 424 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_YES, Q_HIM(q)); telnet 425 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DO, telopt); telnet 428 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTNO, Q_HIM(q)); telnet 429 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WONT, telopt); telnet 430 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DO, telopt); telnet 439 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_NO, Q_HIM(q)); telnet 440 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WONT, telopt); telnet 441 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DONT, telopt); telnet 444 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_NO, Q_HIM(q)); telnet 445 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DONT, telopt); telnet 448 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTYES, Q_HIM(q)); telnet 449 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WILL, telopt); telnet 450 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DONT, telopt); telnet 454 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_NO, Q_HIM(q)); telnet 475 src/dps8/libtelnet.c static int _environ_telnet(telnet_t *telnet, unsigned char type, telnet 491 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 507 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 515 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 522 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 541 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0, telnet 609 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 617 src/dps8/libtelnet.c static int _ttype_telnet(telnet_t *telnet, const char* buffer, size_t size) { telnet 622 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 630 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 641 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0, telnet 651 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 659 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 670 src/dps8/libtelnet.c static int _subnegotiate(telnet_t *telnet) { telnet 675 src/dps8/libtelnet.c ev.sub.telopt = telnet->sb_telopt; telnet 676 src/dps8/libtelnet.c ev.sub.buffer = telnet->buffer; telnet 677 src/dps8/libtelnet.c ev.sub.size = telnet->buffer_pos; telnet 678 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 680 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); /* X-LINTED: FREE */ 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 928 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 934 src/dps8/libtelnet.c telnet->state = TELNET_STATE_IAC; telnet 941 src/dps8/libtelnet.c if (_subnegotiate(telnet) != 0) { telnet 942 src/dps8/libtelnet.c telnet_recv(telnet, &buffer[start], size - start); telnet 951 src/dps8/libtelnet.c _process(telnet, (char *)&byte, 1); telnet 960 src/dps8/libtelnet.c if (telnet->state == TELNET_STATE_DATA && i != start) { telnet 964 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 969 src/dps8/libtelnet.c void telnet_recv(telnet_t *telnet, const char *buffer, telnet 971 src/dps8/libtelnet.c _process(telnet, buffer, size); telnet 975 src/dps8/libtelnet.c void telnet_iac(telnet_t *telnet, unsigned char cmd) { telnet 979 src/dps8/libtelnet.c _sendu(telnet, bytes, 2); telnet 983 src/dps8/libtelnet.c void telnet_negotiate(telnet_t *telnet, unsigned char cmd, telnet 988 src/dps8/libtelnet.c if (telnet->flags & TELNET_FLAG_PROXY) { telnet 993 src/dps8/libtelnet.c _sendu(telnet, bytes, 3); telnet 998 src/dps8/libtelnet.c q = _get_rfc1143(telnet, telopt); telnet 1005 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTYES, Q_HIM(q)); telnet 1006 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WILL, telopt); telnet 1009 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTNO_OP, Q_HIM(q)); telnet 1012 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTYES, Q_HIM(q)); telnet 1021 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTNO, Q_HIM(q)); telnet 1022 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WONT, telopt); telnet 1025 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTYES_OP, Q_HIM(q)); telnet 1028 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTNO, Q_HIM(q)); telnet 1037 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTYES); telnet 1038 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DO, telopt); telnet 1041 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTNO_OP); telnet 1044 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTYES); telnet 1053 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTNO); telnet 1054 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DONT, telopt); telnet 1057 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTYES_OP); telnet 1060 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTNO); telnet 1068 src/dps8/libtelnet.c void telnet_send(telnet_t *telnet, const char *buffer, telnet 1077 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); telnet 1082 src/dps8/libtelnet.c telnet_iac(telnet, TELNET_IAC); telnet 1088 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); telnet 1093 src/dps8/libtelnet.c void telnet_send_text(telnet_t *telnet, const char *buffer, telnet 1102 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); telnet 1107 src/dps8/libtelnet.c telnet_iac(telnet, TELNET_IAC); telnet 1110 src/dps8/libtelnet.c else if (!(telnet->flags & TELNET_FLAG_TRANSMIT_BINARY) && telnet 1114 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); telnet 1120 src/dps8/libtelnet.c _send(telnet, CRNUL, 2); telnet 1124 src/dps8/libtelnet.c _send(telnet, CRLF, 2); telnet 1131 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); telnet 1136 src/dps8/libtelnet.c void telnet_begin_sb(telnet_t *telnet, unsigned char telopt) { telnet 1141 src/dps8/libtelnet.c _sendu(telnet, sb, 3); telnet 1145 src/dps8/libtelnet.c int telnet_vprintf(telnet_t *telnet, const char *fmt, va_list va) { telnet 1157 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0, telnet 1174 src/dps8/libtelnet.c _send(telnet, output + l, (size_t) (i - l)); telnet 1179 src/dps8/libtelnet.c telnet_iac(telnet, TELNET_IAC); telnet 1182 src/dps8/libtelnet.c _send(telnet, CRNUL, 2); telnet 1185 src/dps8/libtelnet.c _send(telnet, CRLF, 2); telnet 1191 src/dps8/libtelnet.c _send(telnet, output + l, (size_t) (i - l)); telnet 1203 src/dps8/libtelnet.c int telnet_printf(telnet_t *telnet, const char *fmt, ...) { telnet 1208 src/dps8/libtelnet.c rs = telnet_vprintf(telnet, fmt, va); telnet 1215 src/dps8/libtelnet.c int telnet_raw_vprintf(telnet_t *telnet, const char *fmt, va_list va) { telnet 1227 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0, telnet 1238 src/dps8/libtelnet.c telnet_send(telnet, output, (size_t) rs); telnet 1249 src/dps8/libtelnet.c int telnet_raw_printf(telnet_t *telnet, const char *fmt, ...) { telnet 1254 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 379 src/dps8/libtelnet.h extern void telnet_free(telnet_t *telnet); telnet 393 src/dps8/libtelnet.h extern void telnet_recv(telnet_t *telnet, const char *buffer, telnet 402 src/dps8/libtelnet.h extern void telnet_iac(telnet_t *telnet, unsigned char cmd); telnet 415 src/dps8/libtelnet.h extern void telnet_negotiate(telnet_t *telnet, unsigned char cmd, telnet 425 src/dps8/libtelnet.h extern void telnet_send(telnet_t *telnet, telnet 436 src/dps8/libtelnet.h extern void telnet_send_text(telnet_t *telnet, telnet 449 src/dps8/libtelnet.h extern void telnet_begin_sb(telnet_t *telnet, telnet 460 src/dps8/libtelnet.h # define telnet_finish_sb(telnet) telnet_iac((telnet), TELNET_SE) telnet 476 src/dps8/libtelnet.h extern int telnet_printf(telnet_t *telnet, const char *fmt, ...) telnet 484 src/dps8/libtelnet.h extern int telnet_vprintf(telnet_t *telnet, const char *fmt, va_list va); telnet 497 src/dps8/libtelnet.h extern int telnet_raw_printf(telnet_t *telnet, const char *fmt, ...) telnet 505 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,