1 // 2 // MPMessagePackServer.h 3 // MPMessagePack 4 // 5 // Created by Gabriel on 12/13/14. 6 // Copyright (c) 2014 Gabriel Handford. All rights reserved. 7 // 8 9 #import <Foundation/Foundation.h> 10 11 #import "MPMessagePack.h" 12 #import "MPMessagePackClient.h" 13 14 @interface MPMessagePackServer : NSObject <MPMessagePackClientDelegate> 15 16 @property (copy, nonatomic) MPRequestHandler requestHandler; 17 @property (copy, nonatomic) MPRequestHandler notificationHandler; 18 19 - (instancetype)initWithOptions:(MPMessagePackOptions)options; 20 21 - (BOOL)openWithPort:(uint16_t)port error:(NSError **)error; 22 23 - (void)close; 24 25 @end 26