More documentation.
5 // Created by Jens Alfke on 5/14/08.
6 // Copyright 2008 Jens Alfke. All rights reserved.
9 #import "TCPEndpoint.h"
11 #import "ExceptionUtils.h"
14 NSString* const kTCPPropertySSLClientSideAuthentication = @"kTCPPropertySSLClientSideAuthentication";
17 @implementation TCPEndpoint
22 [_sslProperties release];
27 - (NSMutableDictionary*) SSLProperties {return _sslProperties;}
29 - (void) setSSLProperties: (NSMutableDictionary*)props
31 if( props != _sslProperties ) {
32 [_sslProperties release];
33 _sslProperties = [props mutableCopy];
37 - (void) setSSLProperty: (id)value forKey: (NSString*)key
40 if( ! _sslProperties )
41 _sslProperties = [[NSMutableDictionary alloc] init];
42 [_sslProperties setObject: value forKey: key];
44 [_sslProperties removeObjectForKey: key];
47 - (NSString*) securityLevel {return [_sslProperties objectForKey: (id)kCFStreamSSLLevel];}
48 - (void) setSecurityLevel: (NSString*)level {[self setSSLProperty: level forKey: (id)kCFStreamSSLLevel];}
51 - (void) tellDelegate: (SEL)selector withObject: (id)param
53 if( [_delegate respondsToSelector: selector] ) {
55 [_delegate performSelector: selector withObject: self withObject: param];
56 }catchAndReport(@"%@ delegate",self.class);
65 Copyright (c) 2008, Jens Alfke <jens@mooseyard.com>. All rights reserved.
67 Redistribution and use in source and binary forms, with or without modification, are permitted
68 provided that the following conditions are met:
70 * Redistributions of source code must retain the above copyright notice, this list of conditions
71 and the following disclaimer.
72 * Redistributions in binary form must reproduce the above copyright notice, this list of conditions
73 and the following disclaimer in the documentation and/or other materials provided with the
76 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
77 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
78 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRI-
79 BUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
80 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
81 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
82 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
83 THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.