home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: tex
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 53 74 61 6e 64 61 72 |\section|{Standar|
|00000010| 64 20 4d 6f 64 75 6c 65 | 20 5c 73 65 63 74 63 6f |d Module| \sectco|
|00000020| 64 65 7b 67 6f 70 68 65 | 72 6c 69 62 7d 7d 0a 5c |de{gophe|rlib}}.\|
|00000030| 73 74 6d 6f 64 69 6e 64 | 65 78 7b 67 6f 70 68 65 |stmodind|ex{gophe|
|00000040| 72 6c 69 62 7d 0a 0a 5c | 72 65 6e 65 77 63 6f 6d |rlib}..\|renewcom|
|00000050| 6d 61 6e 64 7b 5c 69 6e | 64 65 78 73 75 62 69 74 |mand{\in|dexsubit|
|00000060| 65 6d 7d 7b 28 69 6e 20 | 6d 6f 64 75 6c 65 20 67 |em}{(in |module g|
|00000070| 6f 70 68 65 72 6c 69 62 | 29 7d 0a 0a 54 68 69 73 |opherlib|)}..This|
|00000080| 20 6d 6f 64 75 6c 65 20 | 70 72 6f 76 69 64 65 73 | module |provides|
|00000090| 20 61 20 6d 69 6e 69 6d | 61 6c 20 69 6d 70 6c 65 | a minim|al imple|
|000000a0| 6d 65 6e 74 61 74 69 6f | 6e 20 6f 66 20 63 6c 69 |mentatio|n of cli|
|000000b0| 65 6e 74 20 73 69 64 65 | 20 6f 66 20 74 68 65 0a |ent side| of the.|
|000000c0| 74 68 65 20 47 6f 70 68 | 65 72 20 70 72 6f 74 6f |the Goph|er proto|
|000000d0| 63 6f 6c 2e 20 20 49 74 | 20 69 73 20 75 73 65 64 |col. It| is used|
|000000e0| 20 62 79 20 74 68 65 20 | 6d 6f 64 75 6c 65 20 5c | by the |module \|
|000000f0| 63 6f 64 65 7b 75 72 6c | 6c 69 62 7d 20 74 6f 20 |code{url|lib} to |
|00000100| 68 61 6e 64 6c 65 0a 55 | 52 4c 73 20 74 68 61 74 |handle.U|RLs that|
|00000110| 20 75 73 65 20 74 68 65 | 20 47 6f 70 68 65 72 20 | use the| Gopher |
|00000120| 70 72 6f 74 6f 63 6f 6c | 2e 0a 0a 54 68 65 20 6d |protocol|...The m|
|00000130| 6f 64 75 6c 65 20 64 65 | 66 69 6e 65 73 20 74 68 |odule de|fines th|
|00000140| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 66 75 6e 63 |e follow|ing func|
|00000150| 74 69 6f 6e 73 3a 0a 0a | 5c 62 65 67 69 6e 7b 66 |tions:..|\begin{f|
|00000160| 75 6e 63 64 65 73 63 7d | 7b 73 65 6e 64 5f 73 65 |uncdesc}|{send_se|
|00000170| 6c 65 63 74 6f 72 7d 7b | 73 65 6c 65 63 74 6f 72 |lector}{|selector|
|00000180| 5c 2c 20 68 6f 73 74 5c | 6f 70 74 69 6f 6e 61 6c |\, host\|optional|
|00000190| 7b 5c 2c 20 70 6f 72 74 | 7d 7d 0a 53 65 6e 64 20 |{\, port|}}.Send |
|000001a0| 61 20 5c 76 61 72 7b 73 | 65 6c 65 63 74 6f 72 7d |a \var{s|elector}|
|000001b0| 20 73 74 72 69 6e 67 20 | 74 6f 20 74 68 65 20 67 | string |to the g|
|000001c0| 6f 70 68 65 72 20 73 65 | 72 76 65 72 20 61 74 20 |opher se|rver at |
|000001d0| 5c 76 61 72 7b 68 6f 73 | 74 7d 20 61 6e 64 0a 5c |\var{hos|t} and.\|
|000001e0| 76 61 72 7b 70 6f 72 74 | 7d 20 28 64 65 66 61 75 |var{port|} (defau|
|000001f0| 6c 74 20 37 30 29 2e 20 | 20 52 65 74 75 72 6e 20 |lt 70). | Return |
|00000200| 61 6e 20 6f 70 65 6e 20 | 66 69 6c 65 20 6f 62 6a |an open |file obj|
|00000210| 65 63 74 20 66 72 6f 6d | 20 77 68 69 63 68 20 74 |ect from| which t|
|00000220| 68 65 0a 72 65 74 75 72 | 6e 65 64 20 64 6f 63 75 |he.retur|ned docu|
|00000230| 6d 65 6e 74 20 63 61 6e | 20 62 65 20 72 65 61 64 |ment can| be read|
|00000240| 2e 0a 5c 65 6e 64 7b 66 | 75 6e 63 64 65 73 63 7d |..\end{f|uncdesc}|
|00000250| 0a 0a 5c 62 65 67 69 6e | 7b 66 75 6e 63 64 65 73 |..\begin|{funcdes|
|00000260| 63 7d 7b 73 65 6e 64 5f | 71 75 65 72 79 7d 7b 73 |c}{send_|query}{s|
|00000270| 65 6c 65 63 74 6f 72 5c | 2c 20 71 75 65 72 79 5c |elector\|, query\|
|00000280| 2c 20 68 6f 73 74 5c 6f | 70 74 69 6f 6e 61 6c 7b |, host\o|ptional{|
|00000290| 5c 2c 20 70 6f 72 74 7d | 7d 0a 53 65 6e 64 20 61 |\, port}|}.Send a|
|000002a0| 20 5c 76 61 72 7b 73 65 | 6c 65 63 74 6f 72 7d 20 | \var{se|lector} |
|000002b0| 73 74 72 69 6e 67 20 61 | 6e 64 20 61 20 5c 76 61 |string a|nd a \va|
|000002c0| 72 7b 71 75 65 72 79 7d | 20 73 74 72 69 6e 67 20 |r{query}| string |
|000002d0| 74 6f 20 61 20 67 6f 70 | 68 65 72 0a 73 65 72 76 |to a gop|her.serv|
|000002e0| 65 72 20 61 74 20 5c 76 | 61 72 7b 68 6f 73 74 7d |er at \v|ar{host}|
|000002f0| 20 61 6e 64 20 5c 76 61 | 72 7b 70 6f 72 74 7d 20 | and \va|r{port} |
|00000300| 28 64 65 66 61 75 6c 74 | 20 37 30 29 2e 20 20 52 |(default| 70). R|
|00000310| 65 74 75 72 6e 20 61 6e | 20 6f 70 65 6e 20 66 69 |eturn an| open fi|
|00000320| 6c 65 0a 6f 62 6a 65 63 | 74 20 66 72 6f 6d 20 77 |le.objec|t from w|
|00000330| 68 69 63 68 20 74 68 65 | 20 72 65 74 75 72 6e 65 |hich the| returne|
|00000340| 64 20 64 6f 63 75 6d 65 | 6e 74 20 63 61 6e 20 62 |d docume|nt can b|
|00000350| 65 20 72 65 61 64 2e 0a | 5c 65 6e 64 7b 66 75 6e |e read..|\end{fun|
|00000360| 63 64 65 73 63 7d 0a 0a | 4e 6f 74 65 20 74 68 61 |cdesc}..|Note tha|
|00000370| 74 20 74 68 65 20 64 61 | 74 61 20 72 65 74 75 72 |t the da|ta retur|
|00000380| 6e 65 64 20 62 79 20 74 | 68 65 20 47 6f 70 68 65 |ned by t|he Gophe|
|00000390| 72 20 73 65 72 76 65 72 | 20 63 61 6e 20 62 65 20 |r server| can be |
|000003a0| 6f 66 20 61 6e 79 20 74 | 79 70 65 2c 0a 64 65 70 |of any t|ype,.dep|
|000003b0| 65 6e 64 69 6e 67 20 6f | 6e 20 74 68 65 20 66 69 |ending o|n the fi|
|000003c0| 72 73 74 20 63 68 61 72 | 61 63 74 65 72 20 6f 66 |rst char|acter of|
|000003d0| 20 74 68 65 20 73 65 6c | 65 63 74 6f 72 20 73 74 | the sel|ector st|
|000003e0| 72 69 6e 67 2e 20 20 49 | 66 20 74 68 65 20 64 61 |ring. I|f the da|
|000003f0| 74 61 0a 69 73 20 74 65 | 78 74 20 28 66 69 72 73 |ta.is te|xt (firs|
|00000400| 74 20 63 68 61 72 61 63 | 74 65 72 20 6f 66 20 74 |t charac|ter of t|
|00000410| 68 65 20 73 65 6c 65 63 | 74 6f 72 20 69 73 20 5c |he selec|tor is \|
|00000420| 73 61 6d 70 7b 30 7d 29 | 2c 20 6c 69 6e 65 73 20 |samp{0})|, lines |
|00000430| 61 72 65 0a 74 65 72 6d | 69 6e 61 74 65 64 20 62 |are.term|inated b|
|00000440| 79 20 43 52 4c 46 2c 20 | 61 6e 64 20 74 68 65 20 |y CRLF, |and the |
|00000450| 64 61 74 61 20 69 73 20 | 74 65 72 6d 69 6e 61 74 |data is |terminat|
|00000460| 65 64 20 62 79 20 61 20 | 6c 69 6e 65 20 63 6f 6e |ed by a |line con|
|00000470| 73 69 73 74 69 6e 67 20 | 6f 66 0a 61 20 73 69 6e |sisting |of.a sin|
|00000480| 67 6c 65 20 5c 73 61 6d | 70 7b 2e 7d 2c 20 61 6e |gle \sam|p{.}, an|
|00000490| 64 20 61 20 6c 65 61 64 | 69 6e 67 20 5c 73 61 6d |d a lead|ing \sam|
|000004a0| 70 7b 2e 7d 20 73 68 6f | 75 6c 64 20 62 65 20 73 |p{.} sho|uld be s|
|000004b0| 74 72 69 70 70 65 64 20 | 66 72 6f 6d 0a 6c 69 6e |tripped |from.lin|
|000004c0| 65 73 20 74 68 61 74 20 | 62 65 67 69 6e 20 77 69 |es that |begin wi|
|000004d0| 74 68 20 5c 73 61 6d 70 | 7b 2e 2e 7d 2e 20 20 44 |th \samp|{..}. D|
|000004e0| 69 72 65 63 74 6f 72 79 | 20 6c 69 73 74 69 6e 67 |irectory| listing|
|000004f0| 73 20 28 66 69 72 73 74 | 20 63 68 61 72 61 63 74 |s (first| charact|
|00000500| 67 65 72 0a 6f 66 20 74 | 68 65 20 73 65 6c 65 63 |ger.of t|he selec|
|00000510| 74 6f 72 20 69 73 20 5c | 73 61 6d 70 7b 31 7d 29 |tor is \|samp{1})|
|00000520| 20 61 72 65 20 74 72 61 | 6e 73 66 65 72 72 65 64 | are tra|nsferred|
|00000530| 20 75 73 69 6e 67 20 74 | 68 65 20 73 61 6d 65 20 | using t|he same |
|00000540| 70 72 6f 74 6f 63 6f 6c | 2e 0a |protocol|.. |
+--------+-------------------------+-------------------------+--------+--------+