IOS Streaming Browser 1.0
An IOS streaming browser to stream the display to others or to a projector

HTTPConfig Class Reference

#import <HTTPConnection.h>

Public Member Functions

(id) - initWithServer:documentRoot:
(id) - initWithServer:documentRoot:queue:

Properties

HTTPServerserver
NSString * documentRoot
dispatch_queue_t queue

Detailed Description

Definition at line 16 of file HTTPConnection.h.


Member Function Documentation

- (id) initWithServer: (HTTPServer *)  aServer
documentRoot: (NSString *)  aDocumentRoot 

Initializes the HTTPconnection with a server and document root param HTTPServer param NSString returns id (self)

Initialize the HTTPConfig with a server and documentRoot

Definition at line 3267 of file HTTPConnection.m.

                    :(HTTPServer *)aServer documentRoot:(NSString *)aDocumentRoot
{
    DDLogError(@"initWithServer documentRoot: %@",aDocumentRoot);
    
        if ((self = [super init]))
        {
        // Gets the server from the method request parameter
                server = [aServer retain];
        
        // Gets the document root from the method request parameter
                documentRoot = [aDocumentRoot retain];
        }
        return self;
}
- (id) initWithServer: (HTTPServer *)  aServer
documentRoot: (NSString *)  aDocumentRoot
queue: (dispatch_queue_t)  q 

Initializes the HTTPConnection with a server, document root, and dispatch queue param HTTPServer param NSString param dispatch_queue returns id (self)

Initialize the HTTPConfig with a server, documentRoot and queue param HTTPServer param NSString param dispatch_queue_t

Definition at line 3289 of file HTTPConnection.m.

                    :(HTTPServer *)aServer documentRoot:(NSString *)aDocumentRoot queue:(dispatch_queue_t)q
{
    DDLogError(@"initWithServer documentRoot queue: %@",documentRoot);
    
        if ((self = [super init]))
        {
        // Gets the server from the method request parameter
                server = [aServer retain];
                
        // Gets the document root from the method request parameter
                documentRoot = [aDocumentRoot stringByStandardizingPath];
        
        // Check if the document root has a suffix
                if ([documentRoot hasSuffix:@"/"])
                {
            // Appends a forward slash to the document root
                        documentRoot = [documentRoot stringByAppendingString:@"/"];
                }
        
        // Increments the reference count on the document root
                [documentRoot retain];
                
        // If there is a dispatch queue
                if (q)
                {
            //Increment the reference count of a dispatch object.
                        dispatch_retain(q);
                        queue = q;
                }
        }
        return self;
}

Property Documentation

- (NSString *) documentRoot [read, assign]

The document root for the server

Definition at line 27 of file HTTPConnection.h.

- (dispatch_queue_t) queue [read, assign]

The dispatch queue for requests

Definition at line 32 of file HTTPConnection.h.

- (HTTPServer *) server [read, assign]

The HTTPServer which is handling the connection

Definition at line 22 of file HTTPConnection.h.


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Defines