home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / a2.0bemacs-src.lha / Emacs-19.25 / lisp / tcp.elc < prev    next >
Emacs Compiled Lisp  |  1993-08-16  |  1.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 72 6f 6c 61 6e 64 40 |piled by| roland@|
|00000020| 63 68 75 72 63 68 79 2e | 67 6e 75 2e 61 69 2e 6d |churchy.|gnu.ai.m|
|00000030| 69 74 2e 65 64 75 20 6f | 6e 20 4d 6f 6e 20 41 75 |it.edu o|n Mon Au|
|00000040| 67 20 31 36 20 31 34 3a | 35 32 3a 35 36 20 31 39 |g 16 14:|52:56 19|
|00000050| 39 33 0a 3b 3b 3b 20 66 | 72 6f 6d 20 66 69 6c 65 |93.;;; f|rom file|
|00000060| 20 2f 67 64 2f 67 6e 75 | 2f 65 6d 61 63 73 2f 31 | /gd/gnu|/emacs/1|
|00000070| 39 2e 30 2f 6c 69 73 70 | 2f 74 63 70 2e 65 6c 0a |9.0/lisp|/tcp.el.|
|00000080| 3b 3b 3b 20 65 6d 61 63 | 73 20 76 65 72 73 69 6f |;;; emac|s versio|
|00000090| 6e 20 31 39 2e 31 38 2e | 35 2e 0a 3b 3b 3b 20 62 |n 19.18.|5..;;; b|
|000000a0| 79 74 65 63 6f 6d 70 20 | 76 65 72 73 69 6f 6e 20 |ytecomp |version |
|000000b0| 46 53 46 20 32 2e 31 30 | 0a 3b 3b 3b 20 6f 70 74 |FSF 2.10|.;;; opt|
|000000c0| 69 6d 69 7a 61 74 69 6f | 6e 20 69 73 20 6f 6e 2e |imizatio|n is on.|
|000000d0| 0a 3b 3b 3b 20 74 68 69 | 73 20 66 69 6c 65 20 75 |.;;; thi|s file u|
|000000e0| 73 65 73 20 6f 70 63 6f | 64 65 73 20 77 68 69 63 |ses opco|des whic|
|000000f0| 68 20 64 6f 20 6e 6f 74 | 20 65 78 69 73 74 20 69 |h do not| exist i|
|00000100| 6e 20 45 6d 61 63 73 20 | 31 38 2e 0a 0a 28 69 66 |n Emacs |18...(if|
|00000110| 20 28 61 6e 64 20 28 62 | 6f 75 6e 64 70 20 27 65 | (and (b|oundp 'e|
|00000120| 6d 61 63 73 2d 76 65 72 | 73 69 6f 6e 29 0a 09 20 |macs-ver|sion).. |
|00000130| 28 6f 72 20 28 61 6e 64 | 20 28 62 6f 75 6e 64 70 |(or (and| (boundp|
|00000140| 20 27 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e | 'epoch:|:version|
|00000150| 29 20 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e |) epoch:|:version|
|00000160| 29 0a 09 20 20 20 20 20 | 28 73 74 72 69 6e 67 2d |).. |(string-|
|00000170| 6c 65 73 73 70 20 65 6d | 61 63 73 2d 76 65 72 73 |lessp em|acs-vers|
|00000180| 69 6f 6e 20 22 31 39 22 | 29 29 29 0a 20 20 20 20 |ion "19"|))). |
|00000190| 28 65 72 72 6f 72 20 22 | 54 68 69 73 20 66 69 6c |(error "|This fil|
|000001a0| 65 20 77 61 73 20 63 6f | 6d 70 69 6c 65 64 20 66 |e was co|mpiled f|
|000001b0| 6f 72 20 45 6d 61 63 73 | 20 31 39 22 29 29 0a 0a |or Emacs| 19"))..|
|000001c0| 28 70 72 6f 76 69 64 65 | 20 28 71 75 6f 74 65 20 |(provide| (quote |
|000001d0| 74 63 70 29 29 0a 28 64 | 65 66 76 61 72 20 74 63 |tcp)).(d|efvar tc|
|000001e0| 70 2d 70 72 6f 67 72 61 | 6d 2d 6e 61 6d 65 20 22 |p-progra|m-name "|
|000001f0| 74 63 70 22 20 22 5c 0a | 2a 54 68 65 20 6e 61 6d |tcp" "\.|*The nam|
|00000200| 65 20 6f 66 20 74 68 65 | 20 70 72 6f 67 72 61 6d |e of the| program|
|00000210| 20 65 6d 75 6c 61 74 69 | 6e 67 20 6f 70 65 6e 2d | emulati|ng open-|
|00000220| 6e 65 74 77 6f 72 6b 2d | 73 74 72 65 61 6d 20 66 |network-|stream f|
|00000230| 75 6e 63 74 69 6f 6e 2e | 22 29 0a 28 64 65 66 61 |unction.|").(defa|
|00000240| 6c 69 61 73 20 27 6f 70 | 65 6e 2d 6e 65 74 77 6f |lias 'op|en-netwo|
|00000250| 72 6b 2d 73 74 72 65 61 | 6d 20 23 5b 28 6e 61 6d |rk-strea|m #[(nam|
|00000260| 65 20 62 75 66 66 65 72 | 20 68 6f 73 74 20 73 65 |e buffer| host se|
|00000270| 72 76 69 63 65 29 20 22 | c0 09 5c 6e 0b 0c 0d 3b |rvice) "|..\n...;|
|00000280| 83 0e 00 0d 82 11 00 c6 | 0d 21 25 1e 07 c8 0e 07 |........|.!%.....|
|00000290| 21 88 0e 07 29 87 22 20 | 5b 73 74 61 72 74 2d 70 |!...)." |[start-p|
|000002a0| 72 6f 63 65 73 73 20 6e | 61 6d 65 20 62 75 66 66 |rocess n|ame buff|
|000002b0| 65 72 20 74 63 70 2d 70 | 72 6f 67 72 61 6d 2d 6e |er tcp-p|rogram-n|
|000002c0| 61 6d 65 20 68 6f 73 74 | 20 73 65 72 76 69 63 65 |ame host| service|
|000002d0| 20 69 6e 74 2d 74 6f 2d | 73 74 72 69 6e 67 20 70 | int-to-|string p|
|000002e0| 72 6f 63 20 70 72 6f 63 | 65 73 73 2d 6b 69 6c 6c |roc proc|ess-kill|
|000002f0| 2d 77 69 74 68 6f 75 74 | 2d 71 75 65 72 79 5d 20 |-without|-query] |
|00000300| 37 20 22 5c 0a 4f 70 65 | 6e 20 61 20 54 43 50 20 |7 "\.Ope|n a TCP |
|00000310| 63 6f 6e 6e 65 63 74 69 | 6f 6e 20 66 6f 72 20 61 |connecti|on for a|
|00000320| 20 73 65 72 76 69 63 65 | 20 74 6f 20 61 20 68 6f | service| to a ho|
|00000330| 73 74 2e 0a 52 65 74 75 | 72 6e 73 20 61 20 73 75 |st..Retu|rns a su|
|00000340| 62 70 72 6f 63 65 73 73 | 2d 6f 62 6a 65 63 74 20 |bprocess|-object |
|00000350| 74 6f 20 72 65 70 72 65 | 73 65 6e 74 20 74 68 65 |to repre|sent the|
|00000360| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 2e 0a 49 6e 70 | connect|ion..Inp|
|00000370| 75 74 20 61 6e 64 20 6f | 75 74 70 75 74 20 77 6f |ut and o|utput wo|
|00000380| 72 6b 20 61 73 20 66 6f | 72 20 73 75 62 70 72 6f |rk as fo|r subpro|
|00000390| 63 65 73 73 65 73 3b 20 | 60 64 65 6c 65 74 65 2d |cesses; |`delete-|
|000003a0| 70 72 6f 63 65 73 73 27 | 20 63 6c 6f 73 65 73 20 |process'| closes |
|000003b0| 69 74 2e 0a 41 72 67 73 | 20 61 72 65 20 4e 41 4d |it..Args| are NAM|
|000003c0| 45 20 42 55 46 46 45 52 | 20 48 4f 53 54 20 53 45 |E BUFFER| HOST SE|
|000003d0| 52 56 49 43 45 2e 0a 4e | 41 4d 45 20 69 73 20 6e |RVICE..N|AME is n|
|000003e0| 61 6d 65 20 66 6f 72 20 | 70 72 6f 63 65 73 73 2e |ame for |process.|
|000003f0| 20 20 49 74 20 69 73 20 | 6d 6f 64 69 66 69 65 64 | It is |modified|
|00000400| 20 69 66 20 6e 65 63 65 | 73 73 61 72 79 20 74 6f | if nece|ssary to|
|00000410| 20 6d 61 6b 65 20 69 74 | 20 75 6e 69 71 75 65 2e | make it| unique.|
|00000420| 0a 42 55 46 46 45 52 20 | 69 73 20 74 68 65 20 62 |.BUFFER |is the b|
|00000430| 75 66 66 65 72 20 28 6f | 72 20 62 75 66 66 65 72 |uffer (o|r buffer|
|00000440| 2d 6e 61 6d 65 29 20 74 | 6f 20 61 73 73 6f 63 69 |-name) t|o associ|
|00000450| 61 74 65 20 77 69 74 68 | 20 74 68 65 20 70 72 6f |ate with| the pro|
|00000460| 63 65 73 73 2e 0a 20 50 | 72 6f 63 65 73 73 20 6f |cess.. P|rocess o|
|00000470| 75 74 70 75 74 20 67 6f | 65 73 20 61 74 20 65 6e |utput go|es at en|
|00000480| 64 20 6f 66 20 74 68 61 | 74 20 62 75 66 66 65 72 |d of tha|t buffer|
|00000490| 2c 20 75 6e 6c 65 73 73 | 20 79 6f 75 20 73 70 65 |, unless| you spe|
|000004a0| 63 69 66 79 0a 20 61 6e | 20 6f 75 74 70 75 74 20 |cify. an| output |
|000004b0| 73 74 72 65 61 6d 20 6f | 72 20 66 69 6c 74 65 72 |stream o|r filter|
|000004c0| 20 66 75 6e 63 74 69 6f | 6e 20 74 6f 20 68 61 6e | functio|n to han|
|000004d0| 64 6c 65 20 74 68 65 20 | 6f 75 74 70 75 74 2e 0a |dle the |output..|
|000004e0| 20 42 55 46 46 45 52 20 | 6d 61 79 20 62 65 20 61 | BUFFER |may be a|
|000004f0| 6c 73 6f 20 6e 69 6c 2c | 20 6d 65 61 6e 69 6e 67 |lso nil,| meaning|
|00000500| 20 74 68 61 74 20 74 68 | 69 73 20 70 72 6f 63 65 | that th|is proce|
|00000510| 73 73 20 69 73 20 6e 6f | 74 20 61 73 73 6f 63 69 |ss is no|t associ|
|00000520| 61 74 65 64 0a 20 77 69 | 74 68 20 61 6e 79 20 62 |ated. wi|th any b|
|00000530| 75 66 66 65 72 0a 54 68 | 69 72 64 20 61 72 67 20 |uffer.Th|ird arg |
|00000540| 69 73 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 68 |is name |of the h|
|00000550| 6f 73 74 20 74 6f 20 63 | 6f 6e 6e 65 63 74 20 74 |ost to c|onnect t|
|00000560| 6f 2e 0a 46 6f 75 72 74 | 68 20 61 72 67 20 53 45 |o..Fourt|h arg SE|
|00000570| 52 56 49 43 45 20 69 73 | 20 6e 61 6d 65 20 6f 66 |RVICE is| name of|
|00000580| 20 74 68 65 20 73 65 72 | 76 69 63 65 20 64 65 73 | the ser|vice des|
|00000590| 69 72 65 64 2c 20 6f 72 | 20 61 6e 20 69 6e 74 65 |ired, or| an inte|
|000005a0| 67 65 72 0a 20 73 70 65 | 63 69 66 79 69 6e 67 20 |ger. spe|cifying |
|000005b0| 61 20 70 6f 72 74 20 6e | 75 6d 62 65 72 20 74 6f |a port n|umber to|
|000005c0| 20 63 6f 6e 6e 65 63 74 | 20 74 6f 2e 22 5d 29 0a | connect| to."]).|
+--------+-------------------------+-------------------------+--------+--------+