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

Version Path
iCuke-0.7.0 ext/iCuke/iCukeHTTPServer.h
iCuke-0.6.6 ext/iCuke/iCukeHTTPServer.h
iCuke-0.6.5 ext/iCuke/iCukeHTTPServer.h
iCuke-0.6.4 ext/iCuke/iCukeHTTPServer.h
iCuke-0.6.3 ext/iCuke/sdk3.1/iCukeHTTPServer.h
iCuke-0.6.3 ext/iCuke/sdk4.0/iCukeHTTPServer.h
iCuke-0.6.2 ext/iCuke/sdk4.0/iCukeHTTPServer.h
iCuke-0.6.2 ext/iCuke/sdk3.1/iCukeHTTPServer.h
iCuke-0.6.1 ext/iCuke/sdk4.0/iCukeHTTPServer.h
iCuke-0.6.1 ext/iCuke/sdk3.1/iCukeHTTPServer.h
iCuke-0.6.0 ext/iCuke/sdk4.0/iCukeHTTPServer.h
iCuke-0.6.0 ext/iCuke/sdk3.1/iCukeHTTPServer.h
iCuke-0.5.5 ext/iCuke/iCukeHTTPServer.h
iCuke-0.5.4 ext/iCuke/iCukeHTTPServer.h
iCuke-0.5.3 ext/iCuke/iCukeHTTPServer.h
iCuke-0.5.2 ext/iCuke/iCukeHTTPServer.h
iCuke-0.5.1 ext/iCuke/iCukeHTTPServer.h
iCuke-0.4.12 ext/iCuke/iCukeHTTPServer.h
iCuke-0.4.11 ext/iCuke/iCukeHTTPServer.h
iCuke-0.4.10 ext/iCuke/iCukeHTTPServer.h