Lines Matching refs:selector
51 def send_request(selector, host, port): argument
53 s.send(selector + CRLF)
58 def get_menu(selector, host, port): argument
59 f = send_request(selector, host, port)
88 def get_textfile(selector, host, port): argument
90 get_alt_textfile(selector, host, port, list.append)
94 def get_alt_textfile(selector, host, port, func): argument
95 f = send_request(selector, host, port)
113 def get_binary(selector, host, port): argument
114 f = send_request(selector, host, port)
120 def get_alt_binary(selector, host, port, func, blocksize): argument
121 f = send_request(selector, host, port)
132 selector = DEF_SELECTOR
137 selector = args[0]
145 browse_menu(selector, host, port)
153 def browse_menu(selector, host, port): argument
154 list = get_menu(selector, host, port)
157 print 'Selector:', repr(selector)
199 def browse_textfile(selector, host, port): argument
204 get_alt_textfile(selector, host, port, x.writeln)
214 get_alt_textfile(selector, host, port, x.writeln)
221 def browse_search(selector, host, port): argument
224 print 'Selector:', repr(selector)
238 browse_menu(selector + TAB + query, host, port)
241 def browse_telnet(selector, host, port): argument
242 if selector:
243 print 'Log in as', repr(selector)
251 def browse_binary(selector, host, port): argument
256 get_alt_binary(selector, host, port, x.write, 8*1024)
260 def browse_sound(selector, host, port): argument
261 browse_binary(selector, host, port)
334 selector = ''
337 selector = sys.argv[1]
340 browser(selector, host, port)