home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / develop™ Technical Journal / develop Issue 6 code / TCP.sea / TCP / NewsWatcher / NW Source / Shared Code / Reusable Source / ftp.h < prev    next >
MacBinary  |  1995-07-08  |  1.4 KB  |  [TEXT/MPCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sat Jul 8 11:44:24 1995, modified Sat Jul 8 11:44:24 1995, creator 'MPCC', type ASCII, 676 bytes "ftp.h" , at 0x324 410 bytes resource default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID TTComp archive compressed (bin-2K) default (weak)
16% TrID MacBinary 2 default (weak)
0% TrID Sybase iAnywhere database files default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 66 74 70 2e 68 00 | 00 00 00 00 00 00 00 00 |..ftp.h.|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 43 | 43 01 00 00 00 00 00 00 |.TEXTMPC|C.......|
|00000050| 00 00 00 00 00 02 a4 00 | 00 01 9a ac 24 58 58 ac |........|....$XX.|
|00000060| 24 58 58 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |$XX.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ee 55 00 00 |........|.....U..|
|00000080| 23 69 66 6e 64 65 66 20 | 5f 5f 46 54 50 5f 5f 0d |#ifndef |__FTP__.|
|00000090| 23 64 65 66 69 6e 65 20 | 5f 5f 46 54 50 5f 5f 0d |#define |__FTP__.|
|000000a0| 0d 23 69 6e 63 6c 75 64 | 65 20 22 6e 65 74 2e 68 |.#includ|e "net.h|
|000000b0| 22 0d 0d 74 79 70 65 64 | 65 66 20 76 6f 69 64 20 |"..typed|ef void |
|000000c0| 2a 46 74 70 53 74 72 65 | 61 6d 52 65 66 3b 0d 0d |*FtpStre|amRef;..|
|000000d0| 23 64 65 66 69 6e 65 20 | 66 74 70 53 65 72 76 65 |#define |ftpServe|
|000000e0| 72 45 72 72 20 31 31 30 | 0d 0d 4f 53 45 72 72 20 |rErr 110|..OSErr |
|000000f0| 46 74 70 4f 70 65 6e 20 | 28 63 68 61 72 20 2a 68 |FtpOpen |(char *h|
|00000100| 6f 73 74 2c 20 63 68 61 | 72 20 2a 75 73 65 72 6e |ost, cha|r *usern|
|00000110| 61 6d 65 2c 20 63 68 61 | 72 20 2a 70 61 73 73 77 |ame, cha|r *passw|
|00000120| 6f 72 64 2c 20 42 6f 6f | 6c 65 61 6e 20 70 61 73 |ord, Boo|lean pas|
|00000130| 73 69 76 65 2c 0d 09 46 | 74 70 53 74 72 65 61 6d |sive,..F|tpStream|
|00000140| 52 65 66 20 2a 73 74 72 | 65 61 6d 29 3b 0d 4f 53 |Ref *str|eam);.OS|
|00000150| 45 72 72 20 46 74 70 43 | 6c 6f 73 65 20 28 46 74 |Err FtpC|lose (Ft|
|00000160| 70 53 74 72 65 61 6d 52 | 65 66 20 73 74 72 65 61 |pStreamR|ef strea|
|00000170| 6d 29 3b 0d 4f 53 45 72 | 72 20 46 74 70 47 65 74 |m);.OSEr|r FtpGet|
|00000180| 46 69 6c 65 20 28 46 74 | 70 53 74 72 65 61 6d 52 |File (Ft|pStreamR|
|00000190| 65 66 20 73 74 72 65 61 | 6d 2c 20 63 68 61 72 20 |ef strea|m, char |
|000001a0| 2a 70 61 74 68 2c 20 42 | 6f 6f 6c 65 61 6e 20 74 |*path, B|oolean t|
|000001b0| 65 78 74 46 69 6c 65 2c | 20 48 61 6e 64 6c 65 20 |extFile,| Handle |
|000001c0| 2a 64 61 74 61 29 3b 0d | 4f 53 45 72 72 20 46 74 |*data);.|OSErr Ft|
|000001d0| 70 47 65 74 4c 69 73 74 | 69 6e 67 20 28 46 74 70 |pGetList|ing (Ftp|
|000001e0| 53 74 72 65 61 6d 52 65 | 66 20 73 74 72 65 61 6d |StreamRe|f stream|
|000001f0| 2c 20 63 68 61 72 20 2a | 70 61 74 68 2c 20 48 61 |, char *|path, Ha|
|00000200| 6e 64 6c 65 20 2a 64 61 | 74 61 29 3b 0d 4f 53 45 |ndle *da|ta);.OSE|
|00000210| 72 72 20 46 74 70 50 75 | 74 46 69 6c 65 20 28 46 |rr FtpPu|tFile (F|
|00000220| 74 70 53 74 72 65 61 6d | 52 65 66 20 73 74 72 65 |tpStream|Ref stre|
|00000230| 61 6d 2c 20 63 68 61 72 | 20 2a 70 61 74 68 2c 20 |am, char| *path, |
|00000240| 42 6f 6f 6c 65 61 6e 20 | 74 65 78 74 46 69 6c 65 |Boolean |textFile|
|00000250| 2c 20 48 61 6e 64 6c 65 | 20 64 61 74 61 29 3b 0d |, Handle| data);.|
|00000260| 4f 53 45 72 72 20 46 74 | 70 44 65 6c 65 74 65 46 |OSErr Ft|pDeleteF|
|00000270| 69 6c 65 20 28 46 74 70 | 53 74 72 65 61 6d 52 65 |ile (Ftp|StreamRe|
|00000280| 66 20 73 74 72 65 61 6d | 2c 20 63 68 61 72 20 2a |f stream|, char *|
|00000290| 70 61 74 68 29 3b 0d 0d | 76 6f 69 64 20 46 74 70 |path);..|void Ftp|
|000002a0| 47 65 74 53 65 72 76 65 | 72 45 72 72 49 6e 66 6f |GetServe|rErrInfo|
|000002b0| 20 28 46 74 70 53 74 72 | 65 61 6d 52 65 66 20 73 | (FtpStr|eamRef s|
|000002c0| 74 72 65 61 6d 2c 20 4e | 65 74 53 65 72 76 65 72 |tream, N|etServer|
|000002d0| 45 72 72 49 6e 66 6f 20 | 2a 73 65 72 76 65 72 45 |ErrInfo |*serverE|
|000002e0| 72 72 49 6e 66 6f 29 3b | 20 0d 6c 6f 6e 67 20 46 |rrInfo);| .long F|
|000002f0| 74 70 4e 75 6d 42 79 74 | 65 73 54 72 61 6e 73 66 |tpNumByt|esTransf|
|00000300| 65 72 72 65 64 20 28 46 | 74 70 53 74 72 65 61 6d |erred (F|tpStream|
|00000310| 52 65 66 20 73 74 72 65 | 61 6d 29 3b 0d 0d 23 65 |Ref stre|am);..#e|
|00000320| 6e 64 69 66 00 00 00 00 | 00 00 00 00 00 00 00 00 |ndif....|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000390| 0d 3e 20 71 75 65 73 74 | 69 6f 6e 2d 20 69 27 76 |.> quest|ion- i'v|
|000003a0| 65 20 62 65 65 6e 20 74 | 68 69 6e 6b 69 6e 67 20 |e been t|hinking |
|000003b0| 05 66 74 70 2e 68 02 00 | 00 00 54 45 58 54 4d 50 |.ftp.h..|..TEXTMP|
|000003c0| 43 43 01 00 00 34 00 80 | 00 00 00 00 12 5e 00 00 |CC...4..|.....^..|
|000003d0| 00 00 54 45 58 54 4d 50 | 43 43 01 00 00 34 00 80 |..TEXTMP|CC...4..|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 aa 4f 89 f7 00 00 | 02 a4 00 00 01 9a 6f 72 |...O....|......or|
|00000400| 20 73 6f 6d 65 74 68 69 | 6e 67 20 61 74 20 6e 6f | somethi|ng at no|
|00000410| 72 6d 61 6c 20 63 6f 73 | 74 2e 20 62 75 74 20 69 |rmal cos|t. but i|
|00000420| 74 20 73 61 69 64 0d 3e | 20 73 6f 6d 65 74 68 69 |t said.>| somethi|
|00000430| 6e 67 20 61 62 6f 75 74 | 20 73 68 69 70 70 69 6e |ng about| shippin|
|00000440| 67 20 61 6e 64 20 68 61 | 6e 64 6c 69 6e 67 2e 20 |g and ha|ndling. |
|00000450| 64 6f 20 69 20 68 61 76 | 65 20 74 6f 20 70 61 79 |do i hav|e to pay|
|00000460| 20 53 2b 48 20 66 6f 72 | 20 74 68 65 20 66 72 65 | S+H for| the fre|
|00000470| 65 0d 3e 20 73 65 76 65 | 6e 3f 0d 0d 68 6d 6d 2e |e.> seve|n?..hmm.|
|00000480| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 03 | 00 04 00 57 00 09 01 98 |........|...W....|
|000004b0| 02 68 00 57 00 09 01 98 | 02 68 ac 24 21 95 00 00 |.h.W....|.h.$!...|
|000004c0| 02 9c 00 00 02 9c 00 00 | 00 00 01 00 00 00 00 04 |........|........|
|000004d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000004e0| 00 00 00 46 01 4e 2b c8 | 11 a2 00 00 00 1c 00 46 |...F.N+.|.......F|
|000004f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000500| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000510| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+