BLIP/BLIP_Internal.h
changeset 18 3be241de1630
parent 16 6f608b552b77
child 19 16454d63d4c2
     1.1 --- a/BLIP/BLIP_Internal.h	Wed Jun 11 14:58:38 2008 -0700
     1.2 +++ b/BLIP/BLIP_Internal.h	Thu Jun 19 16:22:05 2008 -0700
     1.3 @@ -29,6 +29,7 @@
     1.4      kBLIP_Urgent    = 0x0020,       // please send sooner/faster
     1.5      kBLIP_NoReply   = 0x0040,       // no RPY needed
     1.6      kBLIP_MoreComing= 0x0080,       // More frames coming (Applies only to individual frame)
     1.7 +    kBLIP_Meta      = 0x0100,       // Special message type, handled internally (hello, bye, ...)
     1.8  };
     1.9  typedef UInt16 BLIPMessageFlags;
    1.10  
    1.11 @@ -43,6 +44,9 @@
    1.12  
    1.13  #define kBLIPFrameHeaderMagicNumber 0x9B34F205
    1.14  
    1.15 +#define kBLIPProfile_Hi  @"Hi"      // Used for Profile header in meta greeting message
    1.16 +#define kBLIPProfile_Bye @"Bye"     // Used for Profile header in meta close-request message
    1.17 +
    1.18  
    1.19  @interface BLIPConnection ()
    1.20  - (void) _dispatchRequest: (BLIPRequest*)request;
    1.21 @@ -52,6 +56,7 @@
    1.22  
    1.23  @interface BLIPMessage ()
    1.24  @property BOOL sent, propertiesAvailable, complete;
    1.25 +- (BLIPMessageFlags) _flags;
    1.26  - (void) _setFlag: (BLIPMessageFlags)flag value: (BOOL)value;
    1.27  - (void) _encode;
    1.28  @end