Lines Matching defs:DO
29 # - run a server: while true; do nc -l -p 7000 -c "sredird debug /dev/ttyUSB0 /var/lock/sredir"; done
55 # - "ign_set_control": do not look at the answers to SET_CONTROL
58 # automatically on change (which most servers do and is according to the
87 DO = to_bytes([253])
226 """Manage a single telnet option, keeps track of DO/DONT WILL/WONT."""
256 """A DO/DONT/WILL/WONT was received for this option, update state and
399 DO, DONT, INACTIVE),
400 TelnetOption(self, 'we-RFC2217', COM_PORT_OPTION, WILL, WONT, DO, DONT, REQUESTED),
404 TelnetOption(self, 'ECHO', ECHO, DO, DONT, WILL, WONT, REQUESTED),
405 TelnetOption(self, 'we-SGA', SGA, WILL, WONT, DO, DONT, REQUESTED),
406 TelnetOption(self, 'they-SGA', SGA, DO, DONT, WILL, WONT, REQUESTED),
407 TelnetOption(self, 'they-BINARY', BINARY, DO, DONT, WILL, WONT, INACTIVE),
408 TelnetOption(self, 'they-RFC2217', COM_PORT_OPTION, DO, DONT, WILL, WONT, REQUESTED),
732 elif byte in (DO, DONT, WILL, WONT):
740 elif mode == M_NEGOTIATE: # DO, DONT, WILL, WONT was received, option now following
751 """Process commands other than DO, DONT, WILL, WONT."""
757 """Process incoming DO, DONT, WILL, WONT."""
770 if command == WILL or command == DO:
817 """Send DO, DONT, WILL, WONT."""
871 # even when there is a timeout, do not generate an error just
873 # servers that do not respond to polls, but send automatic
927 TelnetOption(self, 'ECHO', ECHO, WILL, WONT, DO, DONT, REQUESTED),
928 TelnetOption(self, 'we-SGA', SGA, WILL, WONT, DO, DONT, REQUESTED),
929 TelnetOption(self, 'they-SGA', SGA, DO, DONT, WILL, WONT, INACTIVE),
930 TelnetOption(self, 'we-BINARY', BINARY, WILL, WONT, DO, DONT, INACTIVE),
931 TelnetOption(self, 'they-BINARY', BINARY, DO, DONT, WILL, WONT, REQUESTED),
932 TelnetOption(self, 'we-RFC2217', COM_PORT_OPTION, WILL, WONT, DO, DONT, REQUESTED, self._client_ok),
933 TelnetOption(self, 'they-RFC2217', COM_PORT_OPTION, DO, DONT, WILL, WONT, INACTIVE, self._client_ok),
952 # already happy. it seems not all servers do the negotiation correctly
965 """Send DO, DONT, WILL, WONT."""
1036 # do things like CR/LF conversion/whatever
1072 elif byte in (DO, DONT, WILL, WONT):
1080 elif self.mode == M_NEGOTIATE: # DO, DONT, WILL, WONT was received, option now following
1087 """Process commands other than DO, DONT, WILL, WONT."""
1093 """Process incoming DO, DONT, WILL, WONT."""
1106 if command == WILL or command == DO: