home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 February: Tool Chest / Dev.CD Feb 00 TC.toast / pc / tool chest / macapp / install macapp r13u4 / Apple Frameworks / Network / Examples / Common Example Code / CExampleEventReceiver.cpp next >
MacBinary  |  1998-10-13  |  5.9 KB  |  [TEXT/CWIE]

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
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Oct 13 06:00:00 1998, modified Tue Oct 13 06:00:00 1998, creator 'CWIE', type ASCII, 5247 bytes "CExampleEventReceiver.cpp" , at 0x14ff 614 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 19 43 45 78 61 6d 70 | 6c 65 45 76 65 6e 74 52 |..CExamp|leEventR|
|00000010| 65 63 65 69 76 65 72 2e | 63 70 70 00 00 00 00 00 |eceiver.|cpp.....|
|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 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 14 7f 00 | 00 02 66 b2 48 d5 20 b2 |........|..f.H. .|
|00000060| 48 d5 20 00 00 04 00 00 | 00 00 00 00 00 00 00 00 |H. .....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 f8 2e 00 00 |........|........|
|00000080| 2f 2f 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |//------|--------|
|00000090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0d 2f 2f 20 43 45 |--------|--.// CE|
|000000e0| 78 61 6d 70 6c 65 45 76 | 65 6e 74 52 65 63 65 69 |xampleEv|entRecei|
|000000f0| 76 65 72 2e 63 70 0d 2f | 2f 20 43 6f 70 79 72 69 |ver.cp./|/ Copyri|
|00000100| 67 68 74 20 a9 20 31 39 | 38 35 2d 39 38 20 62 79 |ght . 19|85-98 by|
|00000110| 20 41 70 70 6c 65 20 43 | 6f 6d 70 75 74 65 72 2c | Apple C|omputer,|
|00000120| 20 49 6e 63 2e 20 41 6c | 6c 20 72 69 67 68 74 73 | Inc. Al|l rights|
|00000130| 20 72 65 73 65 72 76 65 | 64 2e 0d 2f 2f 2d 2d 2d | reserve|d..//---|
|00000140| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000150| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000160| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000170| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000180| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000190| 2d 2d 2d 2d 2d 0d 0d 2f | 2a 0d 09 43 68 61 6e 67 |-----../|*..Chang|
|000001a0| 65 20 48 69 73 74 6f 72 | 79 3a 0d 2a 2f 0d 0d 23 |e Histor|y:.*/..#|
|000001b0| 69 66 6e 64 65 66 20 5f | 5f 43 45 78 61 6d 70 6c |ifndef _|_CExampl|
|000001c0| 65 45 76 65 6e 74 52 65 | 63 65 69 76 65 72 5f 5f |eEventRe|ceiver__|
|000001d0| 0d 23 69 6e 63 6c 75 64 | 65 20 22 43 45 78 61 6d |.#includ|e "CExam|
|000001e0| 70 6c 65 45 76 65 6e 74 | 52 65 63 65 69 76 65 72 |pleEvent|Receiver|
|000001f0| 2e 68 22 0d 23 65 6e 64 | 69 66 0d 0d 23 69 66 6e |.h".#end|if..#ifn|
|00000200| 64 65 66 20 5f 5f 4e 65 | 74 45 76 65 6e 74 73 5f |def __Ne|tEvents_|
|00000210| 41 43 5f 5f 0d 23 69 6e | 63 6c 75 64 65 20 22 4e |AC__.#in|clude "N|
|00000220| 65 74 45 76 65 6e 74 73 | 5f 41 43 2e 68 22 0d 23 |etEvents|_AC.h".#|
|00000230| 65 6e 64 69 66 0d 0d 23 | 69 66 6e 64 65 66 20 5f |endif..#|ifndef _|
|00000240| 5f 43 4e 65 74 77 6f 72 | 6b 54 72 61 6e 73 61 63 |_CNetwor|kTransac|
|00000250| 74 69 6f 6e 5f 41 43 5f | 5f 0d 23 69 6e 63 6c 75 |tion_AC_|_.#inclu|
|00000260| 64 65 20 22 43 4e 65 74 | 77 6f 72 6b 54 72 61 6e |de "CNet|workTran|
|00000270| 73 61 63 74 69 6f 6e 5f | 41 43 2e 68 22 0d 23 65 |saction_|AC.h".#e|
|00000280| 6e 64 69 66 0d 0d 23 69 | 66 6e 64 65 66 20 5f 5f |ndif..#i|fndef __|
|00000290| 43 54 43 50 43 6f 6e 6e | 65 63 74 69 6f 6e 5f 41 |CTCPConn|ection_A|
|000002a0| 43 5f 5f 0d 23 69 6e 63 | 6c 75 64 65 20 22 43 54 |C__.#inc|lude "CT|
|000002b0| 43 50 43 6f 6e 6e 65 63 | 74 69 6f 6e 5f 41 43 2e |CPConnec|tion_AC.|
|000002c0| 68 22 0d 23 65 6e 64 69 | 66 0d 0d 23 69 66 6e 64 |h".#endi|f..#ifnd|
|000002d0| 65 66 20 5f 5f 43 45 76 | 65 6e 74 5f 41 43 5f 5f |ef __CEv|ent_AC__|
|000002e0| 0d 23 69 6e 63 6c 75 64 | 65 20 22 43 45 76 65 6e |.#includ|e "CEven|
|000002f0| 74 5f 41 43 2e 68 22 0d | 23 65 6e 64 69 66 0d 0d |t_AC.h".|#endif..|
|00000300| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 73 74 64 69 6f |.#includ|e <stdio|
|00000310| 2e 68 3e 0d 0d 43 45 78 | 61 6d 70 6c 65 45 76 65 |.h>..CEx|ampleEve|
|00000320| 6e 74 52 65 63 65 69 76 | 65 72 3a 3a 43 45 78 61 |ntReceiv|er::CExa|
|00000330| 6d 70 6c 65 45 76 65 6e | 74 52 65 63 65 69 76 65 |mpleEven|tReceive|
|00000340| 72 28 29 0d 7b 0d 7d 0d | 0d 43 45 78 61 6d 70 6c |r().{.}.|.CExampl|
|00000350| 65 45 76 65 6e 74 52 65 | 63 65 69 76 65 72 3a 3a |eEventRe|ceiver::|
|00000360| 7e 43 45 78 61 6d 70 6c | 65 45 76 65 6e 74 52 65 |~CExampl|eEventRe|
|00000370| 63 65 69 76 65 72 28 29 | 0d 7b 0d 7d 0d 0d 76 6f |ceiver()|.{.}..vo|
|00000380| 69 64 20 43 45 78 61 6d | 70 6c 65 45 76 65 6e 74 |id CExam|pleEvent|
|00000390| 52 65 63 65 69 76 65 72 | 3a 3a 52 65 63 65 69 76 |Receiver|::Receiv|
|000003a0| 65 4e 65 74 77 6f 72 6b | 45 76 65 6e 74 28 43 45 |eNetwork|Event(CE|
|000003b0| 76 65 6e 74 5f 41 43 2a | 20 69 6e 45 76 65 6e 74 |vent_AC*| inEvent|
|000003c0| 2c 20 43 54 43 50 43 6f | 6e 6e 65 63 74 69 6f 6e |, CTCPCo|nnection|
|000003d0| 5f 41 43 2a 20 69 6e 43 | 6f 6e 6e 65 63 74 69 6f |_AC* inC|onnectio|
|000003e0| 6e 29 0d 7b 0d 09 73 77 | 69 74 63 68 28 69 6e 45 |n).{..sw|itch(inE|
|000003f0| 76 65 6e 74 2d 3e 47 65 | 74 45 76 65 6e 74 49 44 |vent->Ge|tEventID|
|00000400| 28 29 29 0d 09 7b 0d 09 | 09 63 61 73 65 20 43 4e |())..{..|.case CN|
|00000410| 65 74 45 76 65 6e 74 5f | 41 43 3a 3a 6b 41 63 63 |etEvent_|AC::kAcc|
|00000420| 65 70 74 53 75 63 63 65 | 65 64 65 64 3a 0d 09 09 |eptSucce|eded:...|
|00000430| 09 70 72 69 6e 74 66 28 | 22 53 65 72 76 69 63 65 |.printf(|"Service|
|00000440| 48 61 6e 64 6c 65 72 20 | 23 25 6c 75 3a 20 41 63 |Handler |#%lu: Ac|
|00000450| 63 65 70 74 20 53 75 63 | 63 65 65 64 65 64 21 5c |cept Suc|ceeded!\|
|00000460| 6e 22 2c 20 09 69 6e 43 | 6f 6e 6e 65 63 74 69 6f |n", .inC|onnectio|
|00000470| 6e 2d 3e 47 65 74 53 65 | 72 69 61 6c 4e 75 6d 62 |n->GetSe|rialNumb|
|00000480| 65 72 28 29 29 3b 0d 09 | 09 62 72 65 61 6b 3b 0d |er());..|.break;.|
|00000490| 0d 09 09 63 61 73 65 20 | 43 4e 65 74 45 76 65 6e |...case |CNetEven|
|000004a0| 74 5f 41 43 3a 3a 6b 41 | 63 63 65 70 74 46 61 69 |t_AC::kA|cceptFai|
|000004b0| 6c 65 64 3a 0d 09 09 63 | 61 73 65 20 43 4e 65 74 |led:...c|ase CNet|
|000004c0| 45 76 65 6e 74 5f 41 43 | 3a 3a 6b 41 63 63 65 70 |Event_AC|::kAccep|
|000004d0| 74 52 65 6a 65 63 74 65 | 64 3a 0d 09 09 63 61 73 |tRejecte|d:...cas|
|000004e0| 65 20 43 4e 65 74 45 76 | 65 6e 74 5f 41 43 3a 3a |e CNetEv|ent_AC::|
|000004f0| 6b 41 63 63 65 70 74 54 | 69 6d 65 64 4f 75 74 3a |kAcceptT|imedOut:|
|00000500| 0d 09 09 09 70 72 69 6e | 74 66 28 22 53 65 72 76 |....prin|tf("Serv|
|00000510| 69 63 65 48 61 6e 64 6c | 65 72 20 23 25 6c 75 3a |iceHandl|er #%lu:|
|00000520| 20 41 63 63 65 70 74 20 | 46 61 69 6c 65 64 21 5c | Accept |Failed!\|
|00000530| 6e 22 2c 20 09 69 6e 43 | 6f 6e 6e 65 63 74 69 6f |n", .inC|onnectio|
|00000540| 6e 2d 3e 47 65 74 53 65 | 72 69 61 6c 4e 75 6d 62 |n->GetSe|rialNumb|
|00000550| 65 72 28 29 29 3b 0d 09 | 09 62 72 65 61 6b 3b 0d |er());..|.break;.|
|00000560| 0d 09 09 63 61 73 65 20 | 43 4e 65 74 45 76 65 6e |...case |CNetEven|
|00000570| 74 5f 41 43 3a 3a 6b 43 | 6f 6e 6e 65 63 74 53 75 |t_AC::kC|onnectSu|
|00000580| 63 63 65 65 64 65 64 3a | 0d 09 09 09 70 72 69 6e |cceeded:|....prin|
|00000590| 74 66 28 22 53 65 72 76 | 69 63 65 48 61 6e 64 6c |tf("Serv|iceHandl|
|000005a0| 65 72 20 23 25 6c 75 3a | 20 43 6f 6e 6e 65 63 74 |er #%lu:| Connect|
|000005b0| 20 53 75 63 63 65 65 64 | 65 64 21 5c 6e 22 2c 20 | Succeed|ed!\n", |
|000005c0| 09 69 6e 43 6f 6e 6e 65 | 63 74 69 6f 6e 2d 3e 47 |.inConne|ction->G|
|000005d0| 65 74 53 65 72 69 61 6c | 4e 75 6d 62 65 72 28 29 |etSerial|Number()|
|000005e0| 29 3b 0d 09 09 62 72 65 | 61 6b 3b 0d 09 09 0d 09 |);...bre|ak;.....|
|000005f0| 09 63 61 73 65 20 43 4e | 65 74 45 76 65 6e 74 5f |.case CN|etEvent_|
|00000600| 41 43 3a 3a 6b 43 6f 6e | 6e 65 63 74 46 61 69 6c |AC::kCon|nectFail|
|00000610| 65 64 3a 0d 09 09 63 61 | 73 65 20 43 4e 65 74 45 |ed:...ca|se CNetE|
|00000620| 76 65 6e 74 5f 41 43 3a | 3a 6b 43 6f 6e 6e 65 63 |vent_AC:|:kConnec|
|00000630| 74 52 65 6a 65 63 74 65 | 64 3a 0d 09 09 63 61 73 |tRejecte|d:...cas|
|00000640| 65 20 43 4e 65 74 45 76 | 65 6e 74 5f 41 43 3a 3a |e CNetEv|ent_AC::|
|00000650| 6b 43 6f 6e 6e 65 63 74 | 54 69 6d 65 64 4f 75 74 |kConnect|TimedOut|
|00000660| 3a 0d 09 09 09 70 72 69 | 6e 74 66 28 22 53 65 72 |:....pri|ntf("Ser|
|00000670| 76 69 63 65 48 61 6e 64 | 6c 65 72 20 23 25 6c 75 |viceHand|ler #%lu|
|00000680| 3a 20 43 6f 6e 6e 65 63 | 74 20 46 61 69 6c 65 64 |: Connec|t Failed|
|00000690| 21 5c 6e 22 2c 20 09 69 | 6e 43 6f 6e 6e 65 63 74 |!\n", .i|nConnect|
|000006a0| 69 6f 6e 2d 3e 47 65 74 | 53 65 72 69 61 6c 4e 75 |ion->Get|SerialNu|
|000006b0| 6d 62 65 72 28 29 29 3b | 0d 09 09 62 72 65 61 6b |mber());|...break|
|000006c0| 3b 0d 09 09 0d 09 09 0d | 09 09 63 61 73 65 20 43 |;.......|..case C|
|000006d0| 4e 65 74 45 76 65 6e 74 | 5f 41 43 3a 3a 6b 43 6f |NetEvent|_AC::kCo|
|000006e0| 6e 6e 65 63 74 69 6f 6e | 54 65 72 6d 69 6e 61 74 |nnection|Terminat|
|000006f0| 65 64 3a 09 09 0d 09 09 | 73 77 69 74 63 68 28 69 |ed:.....|switch(i|
|00000700| 6e 45 76 65 6e 74 2d 3e | 47 65 74 4c 6f 6e 67 44 |nEvent->|GetLongD|
|00000710| 61 74 61 28 29 29 0d 09 | 09 7b 0d 09 09 09 63 61 |ata())..|.{....ca|
|00000720| 73 65 20 43 4e 65 74 45 | 76 65 6e 74 5f 41 43 3a |se CNetE|vent_AC:|
|00000730| 3a 6b 52 63 76 64 48 61 | 6e 67 75 70 3a 0d 09 09 |:kRcvdHa|ngup:...|
|00000740| 09 09 70 72 69 6e 74 66 | 28 22 53 65 72 76 69 63 |..printf|("Servic|
|00000750| 65 48 61 6e 64 6c 65 72 | 20 23 25 6c 75 3a 20 44 |eHandler| #%lu: D|
|00000760| 49 53 43 4f 4e 4e 45 43 | 54 45 44 20 28 52 65 63 |ISCONNEC|TED (Rec|
|00000770| 65 69 76 65 64 20 48 61 | 6e 67 75 70 29 5c 6e 22 |eived Ha|ngup)\n"|
|00000780| 2c 20 69 6e 43 6f 6e 6e | 65 63 74 69 6f 6e 2d 3e |, inConn|ection->|
|00000790| 47 65 74 53 65 72 69 61 | 6c 4e 75 6d 62 65 72 28 |GetSeria|lNumber(|
|000007a0| 29 29 3b 0d 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 |));....b|reak;...|
|000007b0| 09 63 61 73 65 20 43 4e | 65 74 45 76 65 6e 74 5f |.case CN|etEvent_|
|000007c0| 41 43 3a 3a 6b 52 63 76 | 64 44 69 73 63 6f 6e 6e |AC::kRcv|dDisconn|
|000007d0| 65 63 74 3a 0d 09 09 09 | 09 70 72 69 6e 74 66 28 |ect:....|.printf(|
|000007e0| 22 53 65 72 76 69 63 65 | 48 61 6e 64 6c 65 72 20 |"Service|Handler |
|000007f0| 23 25 6c 75 3a 20 44 49 | 53 43 4f 4e 4e 45 43 54 |#%lu: DI|SCONNECT|
|00000800| 45 44 20 28 52 65 63 65 | 69 76 65 64 20 44 69 73 |ED (Rece|ived Dis|
|00000810| 63 6f 6e 6e 65 63 74 29 | 5c 6e 22 2c 20 09 69 6e |connect)|\n", .in|
|00000820| 43 6f 6e 6e 65 63 74 69 | 6f 6e 2d 3e 47 65 74 53 |Connecti|on->GetS|
|00000830| 65 72 69 61 6c 4e 75 6d | 62 65 72 28 29 29 3b 0d |erialNum|ber());.|
|00000840| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 09 63 61 73 |...break|;....cas|
|00000850| 65 20 43 4e 65 74 45 76 | 65 6e 74 5f 41 43 3a 3a |e CNetEv|ent_AC::|
|00000860| 6b 48 61 6e 67 75 70 43 | 6f 6d 70 6c 65 74 65 3a |kHangupC|omplete:|
|00000870| 0d 09 09 09 09 70 72 69 | 6e 74 66 28 22 53 65 72 |.....pri|ntf("Ser|
|00000880| 76 69 63 65 48 61 6e 64 | 6c 65 72 20 23 25 6c 75 |viceHand|ler #%lu|
|00000890| 3a 20 44 49 53 43 4f 4e | 4e 45 43 54 45 44 20 28 |: DISCON|NECTED (|
|000008a0| 48 61 6e 67 75 70 20 43 | 6f 6d 70 6c 65 74 65 29 |Hangup C|omplete)|
|000008b0| 5c 6e 22 2c 20 09 69 6e | 43 6f 6e 6e 65 63 74 69 |\n", .in|Connecti|
|000008c0| 6f 6e 2d 3e 47 65 74 53 | 65 72 69 61 6c 4e 75 6d |on->GetS|erialNum|
|000008d0| 62 65 72 28 29 29 3b 0d | 09 09 09 62 72 65 61 6b |ber());.|...break|
|000008e0| 3b 0d 09 09 09 63 61 73 | 65 20 43 4e 65 74 45 76 |;....cas|e CNetEv|
|000008f0| 65 6e 74 5f 41 43 3a 3a | 6b 44 69 73 63 6f 6e 6e |ent_AC::|kDisconn|
|00000900| 65 63 74 43 6f 6d 70 6c | 65 74 65 3a 0d 09 09 09 |ectCompl|ete:....|
|00000910| 09 70 72 69 6e 74 66 28 | 22 53 65 72 76 69 63 65 |.printf(|"Service|
|00000920| 48 61 6e 64 6c 65 72 20 | 23 25 6c 75 3a 20 44 49 |Handler |#%lu: DI|
|00000930| 53 43 4f 4e 4e 45 43 54 | 45 44 20 28 44 69 73 63 |SCONNECT|ED (Disc|
|00000940| 6f 6e 6e 65 63 74 20 43 | 6f 6d 70 6c 65 74 65 29 |onnect C|omplete)|
|00000950| 5c 6e 22 2c 20 09 69 6e | 43 6f 6e 6e 65 63 74 69 |\n", .in|Connecti|
|00000960| 6f 6e 2d 3e 47 65 74 53 | 65 72 69 61 6c 4e 75 6d |on->GetS|erialNum|
|00000970| 62 65 72 28 29 29 3b 0d | 09 09 09 62 72 65 61 6b |ber());.|...break|
|00000980| 3b 0d 09 09 7d 0d 09 09 | 09 0d 09 09 63 61 73 65 |;...}...|....case|
|00000990| 20 43 4e 65 74 45 76 65 | 6e 74 5f 41 43 3a 3a 6b | CNetEve|nt_AC::k|
|000009a0| 45 72 72 6f 72 3a 0d 09 | 09 7b 0d 09 09 09 43 45 |Error:..|.{....CE|
|000009b0| 72 72 6f 72 5f 41 43 20 | 65 72 72 6f 72 20 3d 20 |rror_AC |error = |
|000009c0| 69 6e 45 76 65 6e 74 2d | 3e 47 65 74 45 72 72 6f |inEvent-|>GetErro|
|000009d0| 72 28 29 3b 0d 09 09 09 | 70 72 69 6e 74 66 28 22 |r();....|printf("|
|000009e0| 53 65 72 76 69 63 65 48 | 61 6e 64 6c 65 72 20 23 |ServiceH|andler #|
|000009f0| 25 6c 75 3a 20 41 6e 20 | 45 72 72 6f 72 20 28 25 |%lu: An |Error (%|
|00000a00| 6c 64 29 20 6f 63 63 75 | 72 65 64 2e 5c 6e 22 2c |ld) occu|red.\n",|
|00000a10| 20 69 6e 43 6f 6e 6e 65 | 63 74 69 6f 6e 2d 3e 47 | inConne|ction->G|
|00000a20| 65 74 53 65 72 69 61 6c | 4e 75 6d 62 65 72 28 29 |etSerial|Number()|
|00000a30| 2c 20 65 72 72 6f 72 29 | 3b 0d 09 09 7d 0d 09 09 |, error)|;...}...|
|00000a40| 62 72 65 61 6b 3b 09 0d | 09 09 0d 09 09 63 61 73 |break;..|.....cas|
|00000a50| 65 20 43 4e 65 74 45 76 | 65 6e 74 5f 41 43 3a 3a |e CNetEv|ent_AC::|
|00000a60| 6b 54 69 6d 65 64 4f 75 | 74 3a 0d 09 09 09 70 72 |kTimedOu|t:....pr|
|00000a70| 69 6e 74 66 28 22 53 65 | 72 76 69 63 65 48 61 6e |intf("Se|rviceHan|
|00000a80| 64 6c 65 72 20 23 25 6c | 75 3a 20 54 69 6d 65 6f |dler #%l|u: Timeo|
|00000a90| 75 74 5c 6e 22 2c 20 69 | 6e 43 6f 6e 6e 65 63 74 |ut\n", i|nConnect|
|00000aa0| 69 6f 6e 2d 3e 47 65 74 | 53 65 72 69 61 6c 4e 75 |ion->Get|SerialNu|
|00000ab0| 6d 62 65 72 28 29 29 3b | 0d 09 09 62 72 65 61 6b |mber());|...break|
|00000ac0| 3b 0d 09 0d 09 7d 0d 7d | 0d 0d 76 6f 69 64 20 43 |;....}.}|..void C|
|00000ad0| 45 78 61 6d 70 6c 65 45 | 76 65 6e 74 52 65 63 65 |ExampleE|ventRece|
|00000ae0| 69 76 65 72 3a 3a 52 65 | 63 65 69 76 65 4e 65 74 |iver::Re|ceiveNet|
|00000af0| 77 6f 72 6b 44 61 74 61 | 45 76 65 6e 74 28 09 43 |workData|Event(.C|
|00000b00| 45 76 65 6e 74 5f 41 43 | 2a 20 69 6e 45 76 65 6e |Event_AC|* inEven|
|00000b10| 74 2c 20 0d 09 09 09 09 | 09 09 09 09 09 09 09 43 |t, .....|.......C|
|00000b20| 54 43 50 43 6f 6e 6e 65 | 63 74 69 6f 6e 5f 41 43 |TCPConne|ction_AC|
|00000b30| 2a 20 69 6e 43 6f 6e 6e | 65 63 74 69 6f 6e 2c 20 |* inConn|ection, |
|00000b40| 0d 09 09 09 09 09 09 09 | 09 09 09 09 43 4e 65 74 |........|....CNet|
|00000b50| 77 6f 72 6b 54 72 61 6e | 73 61 63 74 69 6f 6e 5f |workTran|saction_|
|00000b60| 41 43 2a 20 69 6e 54 72 | 61 6e 73 61 63 74 69 6f |AC* inTr|ansactio|
|00000b70| 6e 29 0d 7b 0d 0d 09 73 | 77 69 74 63 68 28 69 6e |n).{...s|witch(in|
|00000b80| 45 76 65 6e 74 2d 3e 47 | 65 74 45 76 65 6e 74 49 |Event->G|etEventI|
|00000b90| 44 28 29 29 0d 09 7b 0d | 09 09 63 61 73 65 20 43 |D())..{.|..case C|
|00000ba0| 4e 65 74 45 76 65 6e 74 | 5f 41 43 3a 3a 6b 50 72 |NetEvent|_AC::kPr|
|00000bb0| 65 70 61 72 65 54 6f 52 | 65 63 65 69 76 65 44 61 |epareToR|eceiveDa|
|00000bc0| 74 61 3a 0d 09 09 62 72 | 65 61 6b 3b 0d 09 09 63 |ta:...br|eak;...c|
|00000bd0| 61 73 65 20 43 4e 65 74 | 45 76 65 6e 74 5f 41 43 |ase CNet|Event_AC|
|00000be0| 3a 3a 6b 50 72 65 70 61 | 72 65 54 6f 52 65 63 65 |::kPrepa|reToRece|
|00000bf0| 69 76 65 45 78 70 65 64 | 69 74 65 64 44 61 74 61 |iveExped|itedData|
|00000c00| 3a 0d 09 09 62 72 65 61 | 6b 3b 0d 09 09 0d 09 2f |:...brea|k;...../|
|00000c10| 2f 20 74 68 65 73 65 20 | 77 69 6c 6c 20 68 61 76 |/ these |will hav|
|00000c20| 65 20 61 20 74 72 61 6e | 73 61 63 74 69 6f 6e 2e |e a tran|saction.|
|00000c30| 0d 09 09 63 61 73 65 20 | 43 4e 65 74 45 76 65 6e |...case |CNetEven|
|00000c40| 74 5f 41 43 3a 3a 6b 52 | 65 63 65 69 76 65 64 44 |t_AC::kR|eceivedD|
|00000c50| 61 74 61 3a 0d 09 09 09 | 69 66 28 69 6e 54 72 61 |ata:....|if(inTra|
|00000c60| 6e 73 61 63 74 69 6f 6e | 2d 3e 47 65 74 54 72 61 |nsaction|->GetTra|
|00000c70| 6e 73 66 65 72 65 64 41 | 6d 6f 75 6e 74 28 29 20 |nsferedA|mount() |
|00000c80| 3d 3d 20 69 6e 54 72 61 | 6e 73 61 63 74 69 6f 6e |== inTra|nsaction|
|00000c90| 2d 3e 47 65 74 45 78 70 | 65 63 74 65 64 54 72 61 |->GetExp|ectedTra|
|00000ca0| 6e 73 66 65 72 41 6d 6f | 75 6e 74 28 29 29 0d 09 |nsferAmo|unt())..|
|00000cb0| 09 09 7b 0d 09 09 09 09 | 70 72 69 6e 74 66 28 22 |..{.....|printf("|
|00000cc0| 53 65 72 76 69 63 65 48 | 61 6e 64 6c 65 72 20 23 |ServiceH|andler #|
|00000cd0| 25 6c 75 3a 20 52 45 43 | 45 49 56 45 44 20 41 4c |%lu: REC|EIVED AL|
|00000ce0| 4c 20 44 61 74 61 20 28 | 25 6c 64 20 62 79 74 65 |L Data (|%ld byte|
|00000cf0| 73 29 5c 6e 22 2c 20 09 | 69 6e 43 6f 6e 6e 65 63 |s)\n", .|inConnec|
|00000d00| 74 69 6f 6e 2d 3e 47 65 | 74 53 65 72 69 61 6c 4e |tion->Ge|tSerialN|
|00000d10| 75 6d 62 65 72 28 29 2c | 0d 09 09 09 09 09 09 09 |umber(),|........|
|00000d20| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 69 6e 54 |........|.....inT|
|00000d30| 72 61 6e 73 61 63 74 69 | 6f 6e 2d 3e 47 65 74 45 |ransacti|on->GetE|
|00000d40| 78 70 65 63 74 65 64 54 | 72 61 6e 73 66 65 72 41 |xpectedT|ransferA|
|00000d50| 6d 6f 75 6e 74 28 29 29 | 3b 0d 09 09 09 7d 0d 09 |mount())|;....}..|
|00000d60| 09 09 65 6c 73 65 0d 09 | 09 09 09 0d 09 09 09 09 |..else..|........|
|00000d70| 70 72 69 6e 74 66 28 22 | 53 65 72 76 69 63 65 48 |printf("|ServiceH|
|00000d80| 61 6e 64 6c 65 72 20 23 | 25 6c 75 3a 20 52 65 63 |andler #|%lu: Rec|
|00000d90| 65 69 76 65 64 20 25 6c | 64 20 6f 66 20 25 6c 64 |eived %l|d of %ld|
|00000da0| 20 62 79 74 65 73 5c 6e | 22 2c 20 09 69 6e 43 6f | bytes\n|", .inCo|
|00000db0| 6e 6e 65 63 74 69 6f 6e | 2d 3e 47 65 74 53 65 72 |nnection|->GetSer|
|00000dc0| 69 61 6c 4e 75 6d 62 65 | 72 28 29 2c 0d 09 09 09 |ialNumbe|r(),....|
|00000dd0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00000de0| 69 6e 54 72 61 6e 73 61 | 63 74 69 6f 6e 2d 3e 47 |inTransa|ction->G|
|00000df0| 65 74 54 72 61 6e 73 66 | 65 72 65 64 41 6d 6f 75 |etTransf|eredAmou|
|00000e00| 6e 74 28 29 2c 0d 09 09 | 09 09 09 09 09 09 09 09 |nt(),...|........|
|00000e10| 09 09 09 09 09 09 09 09 | 09 69 6e 54 72 61 6e 73 |........|.inTrans|
|00000e20| 61 63 74 69 6f 6e 2d 3e | 47 65 74 45 78 70 65 63 |action->|GetExpec|
|00000e30| 74 65 64 54 72 61 6e 73 | 66 65 72 41 6d 6f 75 6e |tedTrans|ferAmoun|
|00000e40| 74 28 29 29 3b 0d 0d 09 | 09 62 72 65 61 6b 3b 0d |t());...|.break;.|
|00000e50| 09 09 63 61 73 65 20 43 | 4e 65 74 45 76 65 6e 74 |..case C|NetEvent|
|00000e60| 5f 41 43 3a 3a 6b 52 65 | 63 65 69 76 65 64 45 78 |_AC::kRe|ceivedEx|
|00000e70| 70 65 64 69 74 65 64 44 | 61 74 61 3a 0d 09 09 09 |peditedD|ata:....|
|00000e80| 69 66 28 69 6e 54 72 61 | 6e 73 61 63 74 69 6f 6e |if(inTra|nsaction|
|00000e90| 2d 3e 47 65 74 54 72 61 | 6e 73 66 65 72 65 64 41 |->GetTra|nsferedA|
|00000ea0| 6d 6f 75 6e 74 28 29 20 | 3d 3d 20 69 6e 54 72 61 |mount() |== inTra|
|00000eb0| 6e 73 61 63 74 69 6f 6e | 2d 3e 47 65 74 45 78 70 |nsaction|->GetExp|
|00000ec0| 65 63 74 65 64 54 72 61 | 6e 73 66 65 72 41 6d 6f |ectedTra|nsferAmo|
|00000ed0| 75 6e 74 28 29 29 0d 09 | 09 09 7b 0d 09 09 09 09 |unt())..|..{.....|
|00000ee0| 70 72 69 6e 74 66 28 22 | 53 65 72 76 69 63 65 48 |printf("|ServiceH|
|00000ef0| 61 6e 64 6c 65 72 20 23 | 25 6c 75 3a 20 52 45 43 |andler #|%lu: REC|
|00000f00| 45 49 56 45 44 20 41 4c | 4c 20 45 78 70 69 64 69 |EIVED AL|L Expidi|
|00000f10| 74 65 64 20 44 61 74 61 | 20 28 25 6c 64 20 62 79 |ted Data| (%ld by|
|00000f20| 74 65 73 29 5c 6e 22 2c | 20 09 69 6e 43 6f 6e 6e |tes)\n",| .inConn|
|00000f30| 65 63 74 69 6f 6e 2d 3e | 47 65 74 53 65 72 69 61 |ection->|GetSeria|
|00000f40| 6c 4e 75 6d 62 65 72 28 | 29 2c 0d 09 09 09 09 09 |lNumber(|),......|
|00000f50| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00000f60| 09 09 69 6e 54 72 61 6e | 73 61 63 74 69 6f 6e 2d |..inTran|saction-|
|00000f70| 3e 47 65 74 45 78 70 65 | 63 74 65 64 54 72 61 6e |>GetExpe|ctedTran|
|00000f80| 73 66 65 72 41 6d 6f 75 | 6e 74 28 29 29 3b 0d 09 |sferAmou|nt());..|
|00000f90| 09 09 7d 0d 09 09 09 65 | 6c 73 65 0d 09 09 09 09 |..}....e|lse.....|
|00000fa0| 0d 09 09 09 09 70 72 69 | 6e 74 66 28 22 53 65 72 |.....pri|ntf("Ser|
|00000fb0| 76 69 63 65 48 61 6e 64 | 6c 65 72 20 23 25 6c 75 |viceHand|ler #%lu|
|00000fc0| 3a 20 52 65 63 65 69 76 | 65 64 20 25 6c 64 20 6f |: Receiv|ed %ld o|
|00000fd0| 66 20 25 6c 64 20 65 78 | 70 69 64 69 74 65 64 20 |f %ld ex|pidited |
|00000fe0| 62 79 74 65 73 5c 6e 22 | 2c 20 09 09 69 6e 43 6f |bytes\n"|, ..inCo|
|00000ff0| 6e 6e 65 63 74 69 6f 6e | 2d 3e 47 65 74 53 65 72 |nnection|->GetSer|
|00001000| 69 61 6c 4e 75 6d 62 65 | 72 28 29 2c 0d 09 09 09 |ialNumbe|r(),....|
|00001010| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00001020| 09 09 09 09 69 6e 54 72 | 61 6e 73 61 63 74 69 6f |....inTr|ansactio|
|00001030| 6e 2d 3e 47 65 74 54 72 | 61 6e 73 66 65 72 65 64 |n->GetTr|ansfered|
|00001040| 41 6d 6f 75 6e 74 28 29 | 2c 0d 09 09 09 09 09 09 |Amount()|,.......|
|00001050| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00001060| 09 69 6e 54 72 61 6e 73 | 61 63 74 69 6f 6e 2d 3e |.inTrans|action->|
|00001070| 47 65 74 45 78 70 65 63 | 74 65 64 54 72 61 6e 73 |GetExpec|tedTrans|
|00001080| 66 65 72 41 6d 6f 75 6e | 74 28 29 29 3b 0d 09 09 |ferAmoun|t());...|
|00001090| 62 72 65 61 6b 3b 0d 09 | 0d 09 2f 2f 20 73 65 6e |break;..|..// sen|
|000010a0| 64 69 6e 67 20 64 61 74 | 61 20 65 76 65 6e 74 73 |ding dat|a events|
|000010b0| 09 0d 09 09 63 61 73 65 | 20 43 4e 65 74 45 76 65 |....case| CNetEve|
|000010c0| 6e 74 5f 41 43 3a 3a 6b | 53 65 6e 74 44 61 74 61 |nt_AC::k|SentData|
|000010d0| 3a 0d 09 09 09 69 66 28 | 69 6e 54 72 61 6e 73 61 |:....if(|inTransa|
|000010e0| 63 74 69 6f 6e 2d 3e 47 | 65 74 54 72 61 6e 73 66 |ction->G|etTransf|
|000010f0| 65 72 65 64 41 6d 6f 75 | 6e 74 28 29 20 3d 3d 20 |eredAmou|nt() == |
|00001100| 69 6e 54 72 61 6e 73 61 | 63 74 69 6f 6e 2d 3e 47 |inTransa|ction->G|
|00001110| 65 74 45 78 70 65 63 74 | 65 64 54 72 61 6e 73 66 |etExpect|edTransf|
|00001120| 65 72 41 6d 6f 75 6e 74 | 28 29 29 0d 09 09 09 7b |erAmount|())....{|
|00001130| 0d 09 09 09 09 70 72 69 | 6e 74 66 28 22 53 65 72 |.....pri|ntf("Ser|
|00001140| 76 69 63 65 48 61 6e 64 | 6c 65 72 20 23 25 6c 75 |viceHand|ler #%lu|
|00001150| 3a 20 53 45 4e 54 20 41 | 4c 4c 20 44 61 74 61 20 |: SENT A|LL Data |
|00001160| 28 25 6c 64 20 62 79 74 | 65 73 29 5c 6e 22 2c 20 |(%ld byt|es)\n", |
|00001170| 09 69 6e 43 6f 6e 6e 65 | 63 74 69 6f 6e 2d 3e 47 |.inConne|ction->G|
|00001180| 65 74 53 65 72 69 61 6c | 4e 75 6d 62 65 72 28 29 |etSerial|Number()|
|00001190| 2c 0d 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |,.......|........|
|000011a0| 09 09 09 09 09 69 6e 54 | 72 61 6e 73 61 63 74 69 |.....inT|ransacti|
|000011b0| 6f 6e 2d 3e 47 65 74 45 | 78 70 65 63 74 65 64 54 |on->GetE|xpectedT|
|000011c0| 72 61 6e 73 66 65 72 41 | 6d 6f 75 6e 74 28 29 29 |ransferA|mount())|
|000011d0| 3b 0d 09 09 09 7d 0d 09 | 09 09 65 6c 73 65 0d 09 |;....}..|..else..|
|000011e0| 09 09 09 0d 09 09 09 09 | 70 72 69 6e 74 66 28 22 |........|printf("|
|000011f0| 53 65 72 76 69 63 65 48 | 61 6e 64 6c 65 72 20 23 |ServiceH|andler #|
|00001200| 25 6c 75 3a 20 53 65 6e | 74 20 25 6c 64 20 6f 66 |%lu: Sen|t %ld of|
|00001210| 20 25 6c 64 20 62 79 74 | 65 73 5c 6e 22 2c 20 09 | %ld byt|es\n", .|
|00001220| 69 6e 43 6f 6e 6e 65 63 | 74 69 6f 6e 2d 3e 47 65 |inConnec|tion->Ge|
|00001230| 74 53 65 72 69 61 6c 4e | 75 6d 62 65 72 28 29 2c |tSerialN|umber(),|
|00001240| 0d 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00001250| 09 09 09 09 69 6e 54 72 | 61 6e 73 61 63 74 69 6f |....inTr|ansactio|
|00001260| 6e 2d 3e 47 65 74 54 72 | 61 6e 73 66 65 72 65 64 |n->GetTr|ansfered|
|00001270| 41 6d 6f 75 6e 74 28 29 | 2c 0d 09 09 09 09 09 09 |Amount()|,.......|
|00001280| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 69 6e 54 |........|.....inT|
|00001290| 72 61 6e 73 61 63 74 69 | 6f 6e 2d 3e 47 65 74 45 |ransacti|on->GetE|
|000012a0| 78 70 65 63 74 65 64 54 | 72 61 6e 73 66 65 72 41 |xpectedT|ransferA|
|000012b0| 6d 6f 75 6e 74 28 29 29 | 3b 0d 09 09 62 72 65 61 |mount())|;...brea|
|000012c0| 6b 3b 0d 0d 09 09 63 61 | 73 65 20 43 4e 65 74 45 |k;....ca|se CNetE|
|000012d0| 76 65 6e 74 5f 41 43 3a | 3a 6b 53 65 6e 74 45 78 |vent_AC:|:kSentEx|
|000012e0| 70 65 64 69 74 65 64 44 | 61 74 61 3a 0d 09 09 09 |peditedD|ata:....|
|000012f0| 69 66 28 69 6e 54 72 61 | 6e 73 61 63 74 69 6f 6e |if(inTra|nsaction|
|00001300| 2d 3e 47 65 74 54 72 61 | 6e 73 66 65 72 65 64 41 |->GetTra|nsferedA|
|00001310| 6d 6f 75 6e 74 28 29 20 | 3d 3d 20 69 6e 54 72 61 |mount() |== inTra|
|00001320| 6e 73 61 63 74 69 6f 6e | 2d 3e 47 65 74 45 78 70 |nsaction|->GetExp|
|00001330| 65 63 74 65 64 54 72 61 | 6e 73 66 65 72 41 6d 6f |ectedTra|nsferAmo|
|00001340| 75 6e 74 28 29 29 0d 09 | 09 09 7b 0d 09 09 09 09 |unt())..|..{.....|
|00001350| 70 72 69 6e 74 66 28 22 | 53 65 72 76 69 63 65 48 |printf("|ServiceH|
|00001360| 61 6e 64 6c 65 72 20 23 | 25 6c 75 3a 20 53 45 4e |andler #|%lu: SEN|
|00001370| 54 20 41 4c 4c 20 45 78 | 70 69 64 69 74 65 64 20 |T ALL Ex|pidited |
|00001380| 44 61 74 61 20 28 25 6c | 64 20 62 79 74 65 73 29 |Data (%l|d bytes)|
|00001390| 5c 6e 22 2c 20 09 69 6e | 43 6f 6e 6e 65 63 74 69 |\n", .in|Connecti|
|000013a0| 6f 6e 2d 3e 47 65 74 53 | 65 72 69 61 6c 4e 75 6d |on->GetS|erialNum|
|000013b0| 62 65 72 28 29 2c 0d 09 | 09 09 09 09 09 09 09 09 |ber(),..|........|
|000013c0| 09 09 09 09 09 09 09 09 | 09 09 69 6e 54 72 61 6e |........|..inTran|
|000013d0| 73 61 63 74 69 6f 6e 2d | 3e 47 65 74 45 78 70 65 |saction-|>GetExpe|
|000013e0| 63 74 65 64 54 72 61 6e | 73 66 65 72 41 6d 6f 75 |ctedTran|sferAmou|
|000013f0| 6e 74 28 29 29 3b 0d 09 | 09 09 7d 0d 09 09 09 65 |nt());..|..}....e|
|00001400| 6c 73 65 0d 09 09 09 09 | 0d 09 09 09 09 70 72 69 |lse.....|.....pri|
|00001410| 6e 74 66 28 22 53 65 72 | 76 69 63 65 48 61 6e 64 |ntf("Ser|viceHand|
|00001420| 6c 65 72 20 23 25 6c 75 | 3a 20 53 65 6e 74 20 25 |ler #%lu|: Sent %|
|00001430| 6c 64 20 6f 66 20 25 6c | 64 20 45 78 70 69 64 69 |ld of %l|d Expidi|
|00001440| 74 65 64 20 62 79 74 65 | 73 5c 6e 22 2c 20 09 69 |ted byte|s\n", .i|
|00001450| 6e 43 6f 6e 6e 65 63 74 | 69 6f 6e 2d 3e 47 65 74 |nConnect|ion->Get|
|00001460| 53 65 72 69 61 6c 4e 75 | 6d 62 65 72 28 29 2c 0d |SerialNu|mber(),.|
|00001470| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00001480| 09 09 09 09 09 69 6e 54 | 72 61 6e 73 61 63 74 69 |.....inT|ransacti|
|00001490| 6f 6e 2d 3e 47 65 74 54 | 72 61 6e 73 66 65 72 65 |on->GetT|ransfere|
|000014a0| 64 41 6d 6f 75 6e 74 28 | 29 2c 0d 09 09 09 09 09 |dAmount(|),......|
|000014b0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|000014c0| 69 6e 54 72 61 6e 73 61 | 63 74 69 6f 6e 2d 3e 47 |inTransa|ction->G|
|000014d0| 65 74 45 78 70 65 63 74 | 65 64 54 72 61 6e 73 66 |etExpect|edTransf|
|000014e0| 65 72 41 6d 6f 75 6e 74 | 28 29 29 3b 0d 09 09 62 |erAmount|());...b|
|000014f0| 72 65 61 6b 3b 0d 09 09 | 0d 09 7d 0d 0d 7d 0d 00 |reak;...|..}..}..|
|00001500| 00 00 01 00 00 00 02 0a | 00 00 01 0a 00 00 00 5c |........|.......\|
|00001510| 45 76 00 d0 00 00 00 2e | 00 00 00 00 45 76 0f d0 |Ev......|....Ev..|
|00001520| 00 00 00 a6 00 00 00 04 | 45 6f 0a 04 00 00 00 9a |........|Eo......|
|00001530| 19 43 45 78 61 6d 70 6c | 65 45 76 65 6e 74 52 65 |.CExampl|eEventRe|
|00001540| 63 65 69 76 65 72 2e 63 | 70 70 6d 6c 20 55 73 65 |ceiver.c|ppml Use|
|00001550| 02 00 54 45 58 54 4d 50 | 53 20 00 00 b1 df b1 df |..TEXTMP|S ......|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 00 00 b0 03 a3 a1 00 00 | 14 ff 00 00 02 da 00 27 |........|.......'|
|00001580| 00 00 00 00 45 76 0f d0 | 00 00 00 a6 00 00 00 04 |....Ev..|........|
|00001590| 45 6f 0a 04 00 00 00 99 | 00 00 00 08 80 00 00 00 |Eo......|........|
|000015a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 45 76 00 d0 |........|....Ev..|
|000015b0| 00 00 00 26 00 00 00 00 | 45 76 0f d0 00 00 00 a6 |...&....|Ev......|
|000015c0| 00 00 00 04 45 6f 0a 04 | 00 00 00 9b 00 00 00 08 |....Eo..|........|
|000015d0| 80 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015e0| 45 76 00 d0 00 00 00 25 | 00 00 00 00 45 76 0f d0 |Ev.....%|....Ev..|
|000015f0| 00 00 00 a6 00 00 00 04 | 45 6f 0a 04 00 00 00 9c |........|Eo......|
|00001600| 00 00 00 49 13 04 80 01 | 00 00 06 31 33 2e 30 2e |...I....|...13.0.|
|00001610| 34 3b 4d 61 63 41 70 70 | aa 20 52 65 6c 65 61 73 |4;MacApp|. Releas|
|00001620| 65 20 31 33 20 55 70 64 | 61 74 65 20 34 2c 20 a9 |e 13 Upd|ate 4, .|
|00001630| 20 41 70 70 6c 65 20 43 | 6f 6d 70 75 74 65 72 2c | Apple C|omputer,|
|00001640| 20 49 6e 63 2e 20 31 39 | 38 34 2d 39 38 00 00 00 | Inc. 19|84-98...|
|00001650| 49 13 04 80 01 00 00 06 | 31 33 2e 30 2e 34 3b 4d |I.......|13.0.4;M|
|00001660| 61 63 41 70 70 aa 20 52 | 65 6c 65 61 73 65 20 31 |acApp. R|elease 1|
|00001670| 33 20 55 70 64 61 74 65 | 20 34 2c 20 a9 20 41 70 |3 Update| 4, . Ap|
|00001680| 70 6c 65 20 43 6f 6d 70 | 75 74 65 72 2c 20 49 6e |ple Comp|uter, In|
|00001690| 63 2e 20 31 39 38 34 2d | 39 38 00 00 00 6c 9f cd |c. 1984-|98...l..|
|000016a0| 2a 77 3f e5 32 30 00 04 | 00 00 00 01 00 00 00 00 |*w?.20..|........|
|000016b0| b2 3b ca 2c b2 32 d9 d4 | b2 3b b9 c1 00 21 f3 3b |.;.,.2..|.;...!.;|
|000016c0| 00 01 00 1b 00 01 15 4f | 67 68 61 6d ba 52 65 6c |.......O|gham.Rel|
|000016d0| 65 61 73 65 53 63 72 69 | 70 74 73 ba 00 0d 4d 69 |easeScri|pts...Mi|
|000016e0| 6b 65 20 52 6f 73 73 65 | 74 74 69 00 01 31 00 0d |ke Rosse|tti..1..|
|000016f0| 56 65 72 73 46 6f 72 4d | 61 63 41 70 70 00 07 43 |VersForM|acApp..C|
|00001700| 72 65 61 74 65 64 00 00 | 00 00 00 00 01 00 00 00 |reated..|........|
|00001710| 02 0a 00 00 01 0a 00 00 | 00 5c 04 21 de d0 34 84 |........|.\.!..4.|
|00001720| 00 00 00 1c 00 52 00 01 | 76 65 72 73 00 01 00 12 |.....R..|vers....|
|00001730| 63 6b 69 64 00 00 00 2a | 00 01 ff ff 20 00 00 00 |ckid...*|.... ...|
|00001740| 04 21 de 60 00 02 ff ff | 20 00 00 4d 04 21 df 64 |.!.`....| ..M.!.d|
|00001750| 00 80 00 00 00 00 00 9a | 04 21 df 20 09 50 72 6f |........|.!. .Pro|
|00001760| 6a 65 63 74 6f 72 00 00 | 00 00 00 00 00 00 00 00 |jector..|........|
|00001770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+