Lines Matching +full:send +full:- +full:empty

45  * Buffer for sub-options, and macros
57 #define SB_LEN() (subend - subpointer)
71 #define TS_CR 2 /* CR-LF ->'s CR */
75 #define TS_WONT 6 /* wont -''- */
76 #define TS_DO 7 /* do -''- */
77 #define TS_DONT 8 /* dont -''- */
86 if ((&ptyobuf[BUFSIZ] - pfrontp) < 2) in telrcv()
88 c = *netip++ & 0377, ncc--; in telrcv()
110 * Many client implementations send \r\n when in telrcv()
128 (void)(*decrypt_input)(-1); in telrcv()
140 * Send the process on the pty side an in telrcv()
172 ptyflush(); /* half-hearted */ in telrcv()
183 neturg = nfrontp-1; /* off by one XXX */ in telrcv()
185 printoption("td: send IAC", DM)); in telrcv()
200 ptyflush(); /* half-hearted */ in telrcv()
296 subpointer -= 2; in telrcv()
309 subpointer -= 2; in telrcv()
312 suboption(); /* handle sub-option */ in telrcv()
363 * send new_state;
370 * want_resp--;
372 * want_resp--;
379 * send want_state;
386 * Finally, there is one catch. If we send a negative response to a
411 * Special case for TELOPT_TM: We send a DO, but pretend in send_do()
412 * that we sent a DONT, so that we can send more DOs if in send_do()
423 DIAG(TD_OPTIONS, printoption("td: send do", option)); in send_do()
446 do_dont_resp[option]--; in willoption()
448 do_dont_resp[option]--; in willoption()
539 * respond WONT TM to the DO TM that we send to in willoption()
545 * linemode is off and send a WILL ECHO in willoption()
586 DIAG(TD_OPTIONS, printoption("td: send dont", option)); in send_dont()
599 do_dont_resp[option]--; in wontoption()
601 do_dont_resp[option]--; in wontoption()
647 * sub-negotiation, if the client turns off the in wontoption()
650 * to the sub-negotiation, (by updating the timers) in wontoption()
710 DIAG(TD_OPTIONS, printoption("td: send will", option)); in send_will()
718 * we'll keep them in char-at-a-time mode.
734 will_wont_resp[option]--; in dooption()
736 will_wont_resp[option]--; in dooption()
767 * Special case for TM. We send a WILL, but in dooption()
832 DIAG(TD_OPTIONS, printoption("td: send wont", option)); in send_wont()
846 will_wont_resp[option]--; in dontoption()
848 will_wont_resp[option]--; in dontoption()
888 int env_ovar = -1;
889 int env_ovalue = -1;
898 * Look at the sub-option buffer, and try to be helpful to the other
954 while ((p < (terminaltype + sizeof terminaltype-1)) && in suboption()
1058 int last = -1; /* invalid value */ in suboption()
1059 int empty = 0; in suboption() local
1081 || (empty && (last == OLD_ENV_VALUE))) in suboption()
1088 || (empty && (last == OLD_ENV_VAR))) in suboption()
1097 if (empty) { in suboption()
1110 empty = 0; in suboption()
1113 empty = 1; in suboption()
1115 if (empty) { in suboption()
1124 * and none of the VAR or VALUE commands are empty. in suboption()
1125 * If the client has sent us a well-formed option, in suboption()
1257 * We can always send an REQEND so that we cannot in suboption()
1313 * don't support, and the other side didn't send a DONT/WONT in send_status()
1355 writenet(statusbuf, ncp - statusbuf); in send_status()
1356 netflush(); /* Send it on its way */ in send_status()
1359 {printsub('>', statusbuf, ncp - statusbuf); netflush();}); in send_status()