telnet 48 src/dps8/fnptelnet.c static void evHandler (UNUSED telnet_t *telnet, telnet_event_t *event, void *user_data) telnet 89 src/dps8/libtelnet.c #define NEGOTIATE_EVENT(telnet,cmd,opt) \ telnet 92 src/dps8/libtelnet.c (telnet)->eh((telnet), &ev, (telnet)->ud); telnet 161 src/dps8/libtelnet.c static telnet_error_t _error(telnet_t *telnet, unsigned line, telnet 179 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 185 src/dps8/libtelnet.c static void _send(telnet_t *telnet, const char *buffer, telnet 192 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 204 src/dps8/libtelnet.c static __inline__ int _check_telopt(telnet_t *telnet, unsigned char telopt, telnet 209 src/dps8/libtelnet.c if (telnet->telopts == 0) telnet 213 src/dps8/libtelnet.c for (i = 0; telnet->telopts[i].telopt != -1; ++i) { telnet 214 src/dps8/libtelnet.c if (telnet->telopts[i].telopt == telopt) { telnet 215 src/dps8/libtelnet.c if (us && telnet->telopts[i].us == TELNET_WILL) telnet 217 src/dps8/libtelnet.c else if (!us && telnet->telopts[i].him == TELNET_DO) telnet 229 src/dps8/libtelnet.c static __inline__ telnet_rfc1143_t _get_rfc1143(telnet_t *telnet, telnet 235 src/dps8/libtelnet.c for (i = 0; i != telnet->q_cnt; ++i) { telnet 236 src/dps8/libtelnet.c if (telnet->q[i].telopt == telopt) { telnet 237 src/dps8/libtelnet.c return telnet->q[i]; telnet 248 src/dps8/libtelnet.c static __inline__ void _set_rfc1143(telnet_t *telnet, unsigned char telopt, telnet 254 src/dps8/libtelnet.c for (i = 0; i != telnet->q_cnt; ++i) { telnet 255 src/dps8/libtelnet.c if (telnet->q[i].telopt == telopt) { telnet 256 src/dps8/libtelnet.c telnet->q[i].state = (unsigned char) Q_MAKE(us,him); telnet 259 src/dps8/libtelnet.c telnet->flags &= telnet 263 src/dps8/libtelnet.c telnet->flags |= TELNET_FLAG_TRANSMIT_BINARY; telnet 265 src/dps8/libtelnet.c telnet->flags |= TELNET_FLAG_RECEIVE_BINARY; telnet 280 src/dps8/libtelnet.c if (i >= telnet->q_size) { telnet 282 src/dps8/libtelnet.c if ((qtmp = (telnet_rfc1143_t *)realloc(telnet->q, telnet 283 src/dps8/libtelnet.c sizeof(telnet_rfc1143_t) * (telnet->q_size + QUANTUM))) == 0) { telnet 284 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0, telnet 288 src/dps8/libtelnet.c (void)memset(&qtmp[telnet->q_size], 0, sizeof(telnet_rfc1143_t) * QUANTUM); telnet 289 src/dps8/libtelnet.c telnet->q = qtmp; telnet 290 src/dps8/libtelnet.c telnet->q_size += QUANTUM; telnet 293 src/dps8/libtelnet.c telnet->q[telnet->q_cnt].telopt = telopt; telnet 294 src/dps8/libtelnet.c telnet->q[telnet->q_cnt].state = (unsigned char) Q_MAKE(us, him); telnet 295 src/dps8/libtelnet.c telnet->q_cnt ++; telnet 299 src/dps8/libtelnet.c static __inline__ void _send_negotiate(telnet_t *telnet, unsigned char cmd, telnet 305 src/dps8/libtelnet.c _sendu(telnet, bytes, 3); telnet 309 src/dps8/libtelnet.c static void _negotiate(telnet_t *telnet, unsigned char telopt) { telnet 314 src/dps8/libtelnet.c if (telnet->flags & TELNET_FLAG_PROXY) { telnet 315 src/dps8/libtelnet.c switch ((int)telnet->state) { telnet 317 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WILL, telopt); telnet 320 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WONT, telopt); telnet 323 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DO, telopt); telnet 326 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DONT, telopt); telnet 333 src/dps8/libtelnet.c q = _get_rfc1143(telnet, telopt); telnet 336 src/dps8/libtelnet.c switch ((int)telnet->state) { telnet 341 src/dps8/libtelnet.c if (_check_telopt(telnet, telopt, 0)) { telnet 342 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_YES); telnet 343 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DO, telopt); telnet 344 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WILL, telopt); telnet 346 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DONT, telopt); telnet 349 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_NO); telnet 350 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WONT, telopt); telnet 351 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 355 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_YES); telnet 356 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 360 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_YES); telnet 361 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WILL, telopt); telnet 364 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTNO); telnet 365 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DONT, telopt); telnet 366 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WILL, telopt); telnet 375 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_NO); telnet 376 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DONT, telopt); telnet 377 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WONT, telopt); telnet 380 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_NO); telnet 381 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_WONT, telopt); telnet 384 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_US(q), Q_WANTYES); telnet 385 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_DO, telopt); telnet 386 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_NO); telnet 399 src/dps8/libtelnet.c if (_check_telopt(telnet, telopt, 1)) { telnet 400 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_YES, Q_HIM(q)); telnet 401 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WILL, telopt); telnet 402 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DO, telopt); telnet 404 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WONT, telopt); telnet 407 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_NO, Q_HIM(q)); telnet 408 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DONT, telopt); telnet 409 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 413 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_YES, Q_HIM(q)); telnet 414 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 418 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_YES, Q_HIM(q)); telnet 419 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DO, telopt); telnet 422 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTNO, Q_HIM(q)); telnet 423 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WONT, telopt); telnet 424 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DO, telopt); telnet 433 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_NO, Q_HIM(q)); telnet 434 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WONT, telopt); telnet 435 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DONT, telopt); telnet 438 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_NO, Q_HIM(q)); telnet 439 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DONT, telopt); telnet 442 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_WANTYES, Q_HIM(q)); telnet 443 src/dps8/libtelnet.c _send_negotiate(telnet, TELNET_WILL, telopt); telnet 444 src/dps8/libtelnet.c NEGOTIATE_EVENT(telnet, TELNET_EV_DONT, telopt); telnet 448 src/dps8/libtelnet.c _set_rfc1143(telnet, telopt, Q_NO, Q_HIM(q)); telnet 469 src/dps8/libtelnet.c static int _environ_telnet(telnet_t *telnet, unsigned char type, telnet 485 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 501 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 509 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 516 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 535 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0, telnet 603 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 611 src/dps8/libtelnet.c static int _ttype_telnet(telnet_t *telnet, const char* buffer, size_t size) { telnet 616 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 624 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 635 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0, telnet 645 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 653 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 664 src/dps8/libtelnet.c static int _subnegotiate(telnet_t *telnet) { telnet 669 src/dps8/libtelnet.c ev.sub.telopt = telnet->sb_telopt; telnet 670 src/dps8/libtelnet.c ev.sub.buffer = telnet->buffer; telnet 671 src/dps8/libtelnet.c ev.sub.size = telnet->buffer_pos; telnet 672 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 674 src/dps8/libtelnet.c switch (telnet->sb_telopt) { telnet 677 src/dps8/libtelnet.c return _ttype_telnet(telnet, telnet->buffer, telnet->buffer_pos); telnet 680 src/dps8/libtelnet.c return _environ_telnet(telnet, telnet->sb_telopt, telnet->buffer, telnet 681 src/dps8/libtelnet.c telnet->buffer_pos); telnet 691 src/dps8/libtelnet.c struct telnet_t *telnet = (telnet_t*)calloc(1, sizeof(telnet_t)); telnet 692 src/dps8/libtelnet.c if (telnet == 0) telnet 696 src/dps8/libtelnet.c telnet->ud = user_data; telnet 697 src/dps8/libtelnet.c telnet->telopts = telopts; telnet 698 src/dps8/libtelnet.c telnet->eh = eh; telnet 699 src/dps8/libtelnet.c telnet->flags = flags; telnet 701 src/dps8/libtelnet.c return telnet; telnet 705 src/dps8/libtelnet.c void telnet_free(telnet_t *telnet) { telnet 707 src/dps8/libtelnet.c if (telnet->buffer != 0) { telnet 708 src/dps8/libtelnet.c FREE(telnet->buffer); telnet 709 src/dps8/libtelnet.c telnet->buffer = 0; //-V1048 telnet 710 src/dps8/libtelnet.c telnet->buffer_size = 0; telnet 711 src/dps8/libtelnet.c telnet->buffer_pos = 0; telnet 715 src/dps8/libtelnet.c if (telnet->q) { telnet 716 src/dps8/libtelnet.c FREE(telnet->q); telnet 717 src/dps8/libtelnet.c telnet->q = NULL; telnet 718 src/dps8/libtelnet.c telnet->q_size = 0; telnet 719 src/dps8/libtelnet.c telnet->q_cnt = 0; telnet 723 src/dps8/libtelnet.c free(telnet); /* X-LINTED: FREE */ telnet 727 src/dps8/libtelnet.c static telnet_error_t _buffer_byte(telnet_t *telnet, telnet 732 src/dps8/libtelnet.c if (telnet->buffer_pos == telnet->buffer_size) { telnet 736 src/dps8/libtelnet.c if (_buffer_sizes[i] == telnet->buffer_size) { telnet 743 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EOVERFLOW, 0, telnet 749 src/dps8/libtelnet.c new_buffer = (char *)realloc(telnet->buffer, _buffer_sizes[i + 1]); telnet 751 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_ENOMEM, 0, telnet 756 src/dps8/libtelnet.c telnet->buffer = new_buffer; telnet 757 src/dps8/libtelnet.c telnet->buffer_size = _buffer_sizes[i + 1]; telnet 761 src/dps8/libtelnet.c telnet->buffer[telnet->buffer_pos++] = (char) byte; telnet 765 src/dps8/libtelnet.c static void _process(telnet_t *telnet, const char *buffer, size_t size) { telnet 771 src/dps8/libtelnet.c switch (telnet->state) { telnet 781 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 783 src/dps8/libtelnet.c telnet->state = TELNET_STATE_IAC; telnet 785 src/dps8/libtelnet.c (telnet->flags & TELNET_FLAG_NVT_EOL) && telnet 786 src/dps8/libtelnet.c !(telnet->flags & TELNET_FLAG_RECEIVE_BINARY)) { telnet 791 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 793 src/dps8/libtelnet.c telnet->state = TELNET_STATE_EOL; telnet 804 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 813 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DATA; telnet 821 src/dps8/libtelnet.c telnet->state = TELNET_STATE_SB; telnet 825 src/dps8/libtelnet.c telnet->state = TELNET_STATE_WILL; telnet 828 src/dps8/libtelnet.c telnet->state = TELNET_STATE_WONT; telnet 831 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DO; telnet 834 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DONT; telnet 842 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 846 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DATA; telnet 853 src/dps8/libtelnet.c telnet->eh(telnet, &ev, telnet->ud); telnet 857 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DATA; telnet 866 src/dps8/libtelnet.c _negotiate(telnet, byte); telnet 868 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DATA; telnet 873 src/dps8/libtelnet.c telnet->sb_telopt = byte; telnet 874 src/dps8/libtelnet.c telnet->buffer_pos = 0; telnet 875 src/dps8/libtelnet.c telnet->state = TELNET_STATE_SB_DATA; telnet 882 src/dps8/libtelnet.c telnet->state = TELNET_STATE_SB_DATA_IAC; telnet 883 src/dps8/libtelnet.c } else if (_buffer_byte(telnet, byte) != TELNET_EOK) { telnet 885 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DATA; telnet 896 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DATA; telnet 899 src/dps8/libtelnet.c if (_subnegotiate(telnet) != 0) { telnet 900 src/dps8/libtelnet.c telnet_recv(telnet, &buffer[start], size - start); telnet 907 src/dps8/libtelnet.c if (_buffer_byte(telnet, TELNET_IAC) != telnet 910 src/dps8/libtelnet.c telnet->state = TELNET_STATE_DATA; telnet 912 src/dps8/libtelnet.c telnet->state = TELNET_STATE_SB_DATA; telnet 922 src/dps8/libtelnet.c _error(telnet, __LINE__, __func__, TELNET_EPROTOCOL, 0, telnet 928 src/dps8/libtelnet.c telnet->state = TELNET_STATE_IAC; telnet 935 src/dps8/libtelnet.c if (_subnegotiate(telnet) != 0) { telnet 936 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 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 422 src/dps8/uvutil.c static void evHandler (UNUSED telnet_t *telnet, telnet_event_t *event,