Sha256: fb05fc9ae777ae95504f2ec5cdce972b4026daf5f5e99d396bb338e1e5ea44c8
Contents?: true
Size: 1.25 KB
Versions: 25
Compression:
Stored size: 1.25 KB
Contents
// // HTTPServer.h // TextTransfer // // Created by Matt Gallagher on 2009/07/13. // Copyright 2009 Matt Gallagher. All rights reserved. // // Permission is given to use this source code file, free of charge, in any // project, commercial or otherwise, entirely at your risk, with the condition // that any redistribution (in part or whole) of source code must retain // this copyright and permission notice. Attribution in compiled projects is // appreciated but not required. // #if TARGET_OS_IPHONE #import <UIKit/UIKit.h> #else #import <Cocoa/Cocoa.h> #endif typedef enum { SERVER_STATE_IDLE, SERVER_STATE_STARTING, SERVER_STATE_RUNNING, SERVER_STATE_STOPPING } iCukeHTTPServerState; @class iCukeHTTPResponseHandler; @interface iCukeHTTPServer : NSObject { NSError *lastError; NSFileHandle *listeningHandle; CFSocketRef socket; iCukeHTTPServerState state; CFMutableDictionaryRef incomingRequests; NSMutableSet *responseHandlers; } @property (nonatomic, readonly, retain) NSError *lastError; @property (readonly, assign) iCukeHTTPServerState state; + (iCukeHTTPServer *)sharediCukeHTTPServer; - (void)start; - (void)stop; - (void)closeHandler:(iCukeHTTPResponseHandler *)aHandler; @end extern NSString * const iCukeHTTPServerNotificationStateChanged;
Version data entries
25 entries across 21 versions & 1 rubygems