On 29 Jun 2007, at 23:32, Zach wrote:

> Chris is your client written in C or Java? I thought it was based on
> JTrek which is Java but the code looks like C below.

I took some of the OO ideas from JTrek, but it's all objective-C.  
note the [ ] indicating object access, it's typical for Obj-C,
java would be  String message = new String; and C something like char  
*message = (char*) malloc (??);

It's all the same, just in a different language with pro's and con's

(though i think mactrek will profit from Leopard's garbage  
collection....)

>>
>>  message = [NSMutableString
>> stringWithFormat:@"%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",
>>  (char)((macro_flag ? 1 : 0) << 5 | distress_type),
>>  (char)(fuel_percentage | 0x80),