-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMPWHTTPServer.h
More file actions
39 lines (31 loc) · 748 Bytes
/
MPWHTTPServer.h
File metadata and controls
39 lines (31 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// MPWHTTPServer.h
// microhttp
//
// Created by Marcel Weiher on 9/6/10.
// Copyright 2010 Marcel Weiher. All rights reserved.
//
#import <MPWFoundation/MPWFoundation.h>
@interface MPWHTTPServer : NSObject {
void *_httpd;
int port;
id _delegate;
NSString *email;
NSString *bonjourName;
NSData *_defaultResponse;
NSArray *types;
NSArray *netServices;
NSString *_defaultMimeType;
int threadPoolSize;
}
-(int)port;
-(void)setPort:(int)newVar;
-(BOOL)startHttpd;
-(BOOL)start:(NSError**)errorP;
-(void)stop;
-(void)setType:(NSString*)newType;
-(void)setBonjourName:(NSString*)newType;
idAccessor_h( delegate, setDelegate )
intAccessor_h( threadPoolSize, setThreadPoolSize )
@property (nonatomic,assign) int socket;
@end