|
type_to_name(gtype)
Map all file types to strings; unknown types become TYPE='x'. |
|
|
|
send_selector(selector,
host,
port=0)
Send a selector to a given host and port, return a file with the
reply. |
|
|
|
send_query(selector,
query,
host,
port=0)
Send a selector and a query string. |
|
|
|
path_to_selector(path)
Takes a path as returned by urlparse and returns the appropriate
selector. |
|
|
|
|
|
get_directory(f)
Get a directory in the form of a list of entries. |
|
|
|
get_textfile(f)
Get a text file as a list of lines, with trailing CRLF stripped. |
|
|
|
get_alt_textfile(f,
func)
Get a text file and pass each line to a function, with trailing CRLF
stripped. |
|
|
|
get_binary(f)
Get a binary file as one solid data block. |
|
|
|
get_alt_binary(f,
func,
blocksize)
Get a binary file and pass each block to a function. |
|
|
|
test()
Trivial test program. |
|
|