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 217 src/dps8/libtelnet.c static __inline__ int _check_telopt(telnet_t *telnet, unsigned char telopt, telnet 222 src/dps8/libtelnet.c if (telnet->telopts == 0) telnet 226 src/dps8/libtelnet.c for (i = 0; telnet->telopts[i].telopt != -1; ++i) { telnet 227 src/dps8/libtelnet.c if (telnet->telopts[i].telopt == telopt) { telnet 228 src/dps8/libtelnet.c if (us && telnet->telopts[i].us == TELNET_WILL) telnet 230 src/dps8/libtelnet.c else if (!us && telnet->telopts[i].him == TELNET_DO) telnet 242 src/dps8/libtelnet.c static __inline__ telnet_rfc1143_t _get_rfc1143(telnet_t *telnet, telnet 248 src/dps8/libtelnet.c for (i = 0; i != telnet->q_cnt; ++i) { telnet 249 src/dps8/libtelnet.c if (telnet->q[i].telopt == telopt) { telnet 250 src/dps8/libtelnet.c return telnet->q[i]; telnet 261 src/dps8/libtelnet.c static __inline__ void _set_rfc1143(telnet_t *telnet, unsigned char telopt, telnet 267 src/dps8/libtelnet.c for (i = 0; i != telnet->q_cnt; ++i) { telnet 268 src/dps8/libtelnet.c if (telnet->q[i].telopt == telopt) { telnet 269 src/dps8/libtelnet.c telnet->q[i].state = (unsigned char) Q_MAKE(us,him); telnet 272 src/dps8/libtelnet.c telnet->flags &= telnet 276 src/dps8/libtelnet.c telnet->flags |= TELNET_FLAG_TRANSMIT_BINARY; telnet 278 src/dps8/libtelnet.c telnet->flags |= TELNET_FLAG_RECEIVE_BINARY; telnet 293 src/dps8/libtelnet.c if (i >= telnet->q_size) { telnet 295 src/dps8/libtelnet.c if ((qtmp = (telnet_rfc1143_t *)realloc(telnet->q, telnet 296 src/dps8/libtelnet.c sizeof(telnet_rfc1143_t) * (telnet->q_size + QUANTUM))) == 0) { telnet 297 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0, telnet 301 src/dps8/libtelnet.c memset(&qtmp[telnet->q_size], 0, sizeof(telnet_rfc1143_t) * QUANTUM); telnet 302 src/dps8/libtelnet.c telnet->q = qtmp; telnet 303 src/dps8/libtelnet.c telnet->q_size += QUANTUM; telnet 306 src/dps8/libtelnet.c telnet->q[telnet->q_cnt].telopt = telopt; telnet 307 src/dps8/libtelnet.c telnet->q[telnet->q_cnt].state = (unsigned char) Q_MAKE(us, him); telnet 308 src/dps8/libtelnet.c telnet->q_cnt ++; telnet 312 src/dps8/libtelnet.c static __inline__ void _send_negotiate(telnet_t *telnet, unsigned char cmd, telnet 318 src/dps8/libtelnet.c _sendu(telnet, bytes, 3); telnet 322 src/dps8/libtelnet.c static void _negotiate(telnet_t *telnet, unsigned char telopt) { telnet 327 src/dps8/libtelnet.c if (telnet->flags & TELNET_FLAG_PROXY) { telnet 328 src/dps8/libtelnet.c switch ((int)telnet->state) { telnet 330 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WILL, telopt); telnet 333 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WONT, telopt); telnet 336 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DO, telopt); telnet 339 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DONT, telopt); telnet 346 src/dps8/libtelnet.c q = _get_rfc1143(telnet, telopt); telnet 349 src/dps8/libtelnet.c switch ((int)telnet->state) { telnet 354 src/dps8/libtelnet.c if (_check_telopt(telnet, telopt, 0)) { telnet 355 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_YES); telnet 356 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DO, telopt); telnet 357 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WILL, telopt); telnet 359 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DONT, telopt); telnet 362 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_NO); telnet 363 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WONT, telopt); telnet 364 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 368 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_YES); telnet 369 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 373 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_YES); telnet 374 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WILL, telopt); telnet 377 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTNO); telnet 378 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DONT, telopt); telnet 379 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WILL, telopt); telnet 388 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_NO); telnet 389 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DONT, telopt); 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_NO); telnet 394 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WONT, telopt); telnet 397 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTYES); telnet 398 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DO, telopt); telnet 399 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WONT, telopt); telnet 403 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_NO); telnet 412 src/dps8/libtelnet.c if (_check_telopt(telnet, telopt, 1)) { telnet 413 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_YES, Q_HIM(q)); telnet 414 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WILL, telopt); telnet 415 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DO, telopt); telnet 417 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WONT, telopt); telnet 420 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_NO, Q_HIM(q)); telnet 421 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DONT, telopt); telnet 422 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 426 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_YES, Q_HIM(q)); telnet 427 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 431 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_YES, Q_HIM(q)); telnet 432 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DO, telopt); telnet 435 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTNO, Q_HIM(q)); telnet 436 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WONT, telopt); telnet 437 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DO, telopt); telnet 446 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_NO, Q_HIM(q)); telnet 447 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WONT, telopt); telnet 448 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DONT, telopt); telnet 451 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_NO, Q_HIM(q)); telnet 452 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DONT, telopt); telnet 455 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTYES, Q_HIM(q)); telnet 456 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WILL, telopt); telnet 457 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DONT, telopt); telnet 461 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_NO, Q_HIM(q)); telnet 482 src/dps8/libtelnet.c static int _environ_telnet(telnet_t *telnet, unsigned char type, telnet 498 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 514 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 522 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 529 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 548 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0, telnet 616 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 624 src/dps8/libtelnet.c static int _ttype_telnet(telnet_t *telnet, const char* buffer, size_t size) { telnet 629 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 637 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 648 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0, telnet 658 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 666 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 677 src/dps8/libtelnet.c static int _subnegotiate(telnet_t *telnet) { telnet 682 src/dps8/libtelnet.c ev.sub.telopt = telnet->sb_telopt; telnet 683 src/dps8/libtelnet.c ev.sub.buffer = telnet->buffer; telnet 684 src/dps8/libtelnet.c ev.sub.size = telnet->buffer_pos; telnet 685 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 687 src/dps8/libtelnet.c switch (telnet->sb_telopt) { telnet 691 src/dps8/libtelnet.c return _ttype_telnet(telnet, telnet->buffer, telnet->buffer_pos); telnet 694 src/dps8/libtelnet.c return _environ_telnet(telnet, telnet->sb_telopt, telnet->buffer, telnet 695 src/dps8/libtelnet.c telnet->buffer_pos); telnet 705 src/dps8/libtelnet.c struct telnet_t *telnet = (telnet_t*)calloc(1, sizeof(telnet_t)); telnet 706 src/dps8/libtelnet.c if (telnet == 0) telnet 710 src/dps8/libtelnet.c telnet->ud = user_data; telnet 711 src/dps8/libtelnet.c telnet->telopts = telopts; telnet 712 src/dps8/libtelnet.c telnet->eh = eh; telnet 713 src/dps8/libtelnet.c telnet->flags = flags; telnet 715 src/dps8/libtelnet.c return telnet; telnet 719 src/dps8/libtelnet.c void telnet_free(telnet_t *telnet) { telnet 721 src/dps8/libtelnet.c if (telnet->buffer != 0) { telnet 722 src/dps8/libtelnet.c FREE(telnet->buffer); telnet 723 src/dps8/libtelnet.c telnet->buffer = 0; //-V1048 telnet 724 src/dps8/libtelnet.c telnet->buffer_size = 0; telnet 725 src/dps8/libtelnet.c telnet->buffer_pos = 0; telnet 729 src/dps8/libtelnet.c if (telnet->q) { telnet 730 src/dps8/libtelnet.c FREE(telnet->q); telnet 731 src/dps8/libtelnet.c telnet->q = NULL; telnet 732 src/dps8/libtelnet.c telnet->q_size = 0; telnet 733 src/dps8/libtelnet.c telnet->q_cnt = 0; telnet 737 src/dps8/libtelnet.c free(telnet); /* X-LINTED: FREE */ telnet 741 src/dps8/libtelnet.c static telnet_error_t _buffer_byte(telnet_t *telnet, telnet 746 src/dps8/libtelnet.c if (telnet->buffer_pos == telnet->buffer_size) { telnet 750 src/dps8/libtelnet.c if (_buffer_sizes[i] == telnet->buffer_size) { telnet 757 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EOVERFLOW, 0, telnet 763 src/dps8/libtelnet.c new_buffer = (char *)realloc(telnet->buffer, _buffer_sizes[i + 1]); telnet 765 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0, telnet 770 src/dps8/libtelnet.c telnet->buffer = new_buffer; telnet 771 src/dps8/libtelnet.c telnet->buffer_size = _buffer_sizes[i + 1]; telnet 775 src/dps8/libtelnet.c telnet->buffer[telnet->buffer_pos++] = (char) byte; telnet 779 src/dps8/libtelnet.c static void _process(telnet_t *telnet, const char *buffer, size_t size) { telnet 785 src/dps8/libtelnet.c switch (telnet->state) { telnet 795 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 797 src/dps8/libtelnet.c telnet->state = TELNET_STATE_IAC; telnet 799 src/dps8/libtelnet.c (telnet->flags & TELNET_FLAG_NVT_EOL) && telnet 800 src/dps8/libtelnet.c !(telnet->flags & TELNET_FLAG_RECEIVE_BINARY)) { telnet 805 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 807 src/dps8/libtelnet.c telnet->state = TELNET_STATE_EOL; telnet 818 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 827 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DATA; telnet 835 src/dps8/libtelnet.c telnet->state = TELNET_STATE_SB; telnet 839 src/dps8/libtelnet.c telnet->state = TELNET_STATE_WILL; telnet 842 src/dps8/libtelnet.c telnet->state = TELNET_STATE_WONT; telnet 845 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DO; telnet 848 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DONT; telnet 856 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 860 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DATA; telnet 867 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 871 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DATA; telnet 880 src/dps8/libtelnet.c _negotiate(telnet, byte); telnet 882 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DATA; telnet 887 src/dps8/libtelnet.c telnet->sb_telopt = byte; telnet 888 src/dps8/libtelnet.c telnet->buffer_pos = 0; telnet 889 src/dps8/libtelnet.c telnet->state = TELNET_STATE_SB_DATA; telnet 896 src/dps8/libtelnet.c telnet->state = TELNET_STATE_SB_DATA_IAC; telnet 897 src/dps8/libtelnet.c } else if (_buffer_byte(telnet, byte) != TELNET_EOK) { telnet 899 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DATA; telnet 910 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DATA; telnet 913 src/dps8/libtelnet.c if (_subnegotiate(telnet) != 0) { telnet 914 src/dps8/libtelnet.c telnet_recv(telnet, &buffer[start], size - start); telnet 921 src/dps8/libtelnet.c if (_buffer_byte(telnet, TELNET_IAC) != telnet 924 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DATA; telnet 926 src/dps8/libtelnet.c telnet->state = TELNET_STATE_SB_DATA; telnet 936 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 942 src/dps8/libtelnet.c telnet->state = TELNET_STATE_IAC; telnet 949 src/dps8/libtelnet.c if (_subnegotiate(telnet) != 0) { telnet 950 src/dps8/libtelnet.c telnet_recv(telnet, &buffer[start], size - start); telnet 960 src/dps8/libtelnet.c _process(telnet, (char *)&byte, 1); telnet 969 src/dps8/libtelnet.c if (telnet->state == TELNET_STATE_DATA && i != start) { telnet 973 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 978 src/dps8/libtelnet.c void telnet_recv(telnet_t *telnet, const char *buffer, telnet 980 src/dps8/libtelnet.c _process(telnet, buffer, size); telnet 984 src/dps8/libtelnet.c void telnet_iac(telnet_t *telnet, unsigned char cmd) { telnet 988 src/dps8/libtelnet.c _sendu(telnet, bytes, 2); telnet 992 src/dps8/libtelnet.c void telnet_negotiate(telnet_t *telnet, unsigned char cmd, telnet 997 src/dps8/libtelnet.c if (telnet->flags & TELNET_FLAG_PROXY) { telnet 1002 src/dps8/libtelnet.c _sendu(telnet, bytes, 3); telnet 1007 src/dps8/libtelnet.c q = _get_rfc1143(telnet, telopt); telnet 1014 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTYES, Q_HIM(q)); telnet 1015 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WILL, telopt); telnet 1018 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTNO_OP, Q_HIM(q)); telnet 1021 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTYES, Q_HIM(q)); telnet 1030 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTNO, Q_HIM(q)); telnet 1031 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WONT, telopt); telnet 1034 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTYES_OP, Q_HIM(q)); telnet 1037 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTNO, Q_HIM(q)); telnet 1046 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTYES); telnet 1047 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DO, telopt); telnet 1050 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTNO_OP); telnet 1053 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTYES); telnet 1062 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTNO); telnet 1063 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DONT, telopt); telnet 1066 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTYES_OP); telnet 1069 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTNO); telnet 1077 src/dps8/libtelnet.c void telnet_send(telnet_t *telnet, const char *buffer, telnet 1086 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); telnet 1091 src/dps8/libtelnet.c telnet_iac(telnet, TELNET_IAC); telnet 1097 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); telnet 1102 src/dps8/libtelnet.c void telnet_send_text(telnet_t *telnet, const char *buffer, telnet 1111 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); telnet 1116 src/dps8/libtelnet.c telnet_iac(telnet, TELNET_IAC); telnet 1119 src/dps8/libtelnet.c else if (!(telnet->flags & TELNET_FLAG_TRANSMIT_BINARY) && telnet 1123 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); telnet 1129 src/dps8/libtelnet.c _send(telnet, CRNUL, 2); telnet 1133 src/dps8/libtelnet.c _send(telnet, CRLF, 2); telnet 1140 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); telnet 1145 src/dps8/libtelnet.c void telnet_begin_sb(telnet_t *telnet, unsigned char telopt) { telnet 1150 src/dps8/libtelnet.c _sendu(telnet, sb, 3); telnet 1154 src/dps8/libtelnet.c int telnet_vprintf(telnet_t *telnet, const char *fmt, va_list va) { telnet 1166 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0, telnet 1183 src/dps8/libtelnet.c _send(telnet, output + l, (size_t) (i - l)); telnet 1188 src/dps8/libtelnet.c telnet_iac(telnet, TELNET_IAC); telnet 1191 src/dps8/libtelnet.c _send(telnet, CRNUL, 2); telnet 1194 src/dps8/libtelnet.c _send(telnet, CRLF, 2); telnet 1200 src/dps8/libtelnet.c _send(telnet, output + l, (size_t) (i - l)); telnet 1212 src/dps8/libtelnet.c int telnet_printf(telnet_t *telnet, const char *fmt, ...) { telnet 1217 src/dps8/libtelnet.c rs = telnet_vprintf(telnet, fmt, va); telnet 1224 src/dps8/libtelnet.c int telnet_raw_vprintf(telnet_t *telnet, const char *fmt, va_list va) { telnet 1236 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0, telnet 1247 src/dps8/libtelnet.c telnet_send(telnet, output, (size_t) rs); telnet 1258 src/dps8/libtelnet.c int telnet_raw_printf(telnet_t *telnet, const char *fmt, ...) { telnet 1263 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,