HTTPServer.h.svn-base
上传用户:kc0325
上传日期:2020-06-20
资源大小:204k
文件大小:1k
- #import <Foundation/Foundation.h>
- @class AsyncSocket;
- @interface HTTPServer : NSObject
- {
- // Underlying asynchronous TCP/IP socket
- AsyncSocket *asyncSocket;
-
- // Standard delegate
- id delegate;
-
- // HTTP server configuration
- NSURL *documentRoot;
- Class connectionClass;
-
- // NSNetService and related variables
- NSNetService *netService;
- NSString *domain;
- NSString *type;
- NSString *name;
- UInt16 port;
- NSDictionary *txtRecordDictionary;
-
- NSMutableArray *connections;
- }
- - (id)delegate;
- - (void)setDelegate:(id)newDelegate;
- - (NSURL *)documentRoot;
- - (void)setDocumentRoot:(NSURL *)value;
- - (Class)connectionClass;
- - (void)setConnectionClass:(Class)value;
- - (NSString *)domain;
- - (void)setDomain:(NSString *)value;
- - (NSString *)type;
- - (void)setType:(NSString *)value;
- - (NSString *)name;
- - (void)setName:(NSString *)value;
- - (UInt16)port;
- - (void)setPort:(UInt16)value;
- - (NSDictionary *)TXTRecordDictionary;
- - (void)setTXTRecordDictionary:(NSDictionary *)dict;
- - (BOOL)start:(NSError **)error;
- - (BOOL)stop;
- - (int)numberOfHTTPConnections;
- @end