Changeset 3641
- Timestamp:
- 04/18/07 00:19:58 (1 year ago)
- Files:
-
- trunk/Chat Core.xcodeproj/project.pbxproj (modified) (8 diffs)
- trunk/Colloquy.xcodeproj (modified) (1 prop)
- trunk/Colloquy.xcodeproj/project.pbxproj (modified) (6 diffs)
- trunk/Frameworks/Acid/Acid.pch (added)
- trunk/Frameworks/Acid/Acid.xcodeproj (added)
- trunk/Frameworks/Acid/Acid.xcodeproj/project.pbxproj (added)
- trunk/Frameworks/Acid/Info.plist (added)
- trunk/Frameworks/Acid/acid.h (modified) (1 diff)
- trunk/Frameworks/Acid/dom/XMLAccumulator.m (modified) (2 diffs)
- trunk/Frameworks/Acid/dom/XMLElement.m (modified) (2 diffs)
- trunk/Frameworks/Acid/dom/XMLElementStream.m (modified) (1 diff)
- trunk/Frameworks/Acid/dom/acid-dom.h (modified) (3 diffs)
- trunk/Frameworks/Acid/extensions/NSMutableArray+InsertSort.h (modified) (1 diff)
- trunk/Frameworks/Acid/extensions/NSMutableString.m (modified) (1 diff)
- trunk/Frameworks/Acid/extensions/NSString+Misc.h (modified) (1 diff)
- trunk/Frameworks/Acid/jabber/JabberGroupTracker.m (modified) (1 diff)
- trunk/Frameworks/Acid/jabber/JabberID.h (modified) (2 diffs)
- trunk/Frameworks/Acid/jabber/JabberID.m (modified) (2 diffs)
- trunk/Frameworks/Acid/jabber/JabberSession.m (modified) (7 diffs)
- trunk/Frameworks/Acid/jabber/JabberSocket.m (modified) (6 diffs)
- trunk/Frameworks/Acid/jabber/JabberSubscriptionRequest.m (modified) (1 diff)
- trunk/Frameworks/Acid/jabber/acid-jabber.h (modified) (4 diffs)
- trunk/Frameworks/Acid/utility/DizSocket.h (deleted)
- trunk/Frameworks/Acid/utility/DizSocket.m (deleted)
- trunk/Frameworks/Acid/utility/esession/buffer.h (modified) (1 diff)
- trunk/Frameworks/Acid/utility/esession/esession.c (modified) (1 diff)
- trunk/Frameworks/Acid/utility/esession/esession.h (modified) (1 diff)
- trunk/Frameworks/Acid/utility/esession/keycache.c (modified) (2 diffs)
- trunk/Frameworks/Acid/utility/idn/profiles.c (modified) (9 diffs)
- trunk/Frameworks/Acid/utility/idn/stringprep.h (modified) (2 diffs)
- trunk/Frameworks/Acid/utility/idn/stringprep_generic.c (modified) (17 diffs)
- trunk/Frameworks/Acid/xpath/XPPredicate.m (modified) (1 diff)
- trunk/Frameworks/Acid/xpath/acid-xpath.h (modified) (1 diff)
- trunk/Frameworks/frameworks.tar.gz (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Chat Core.xcodeproj/project.pbxproj
r3638 r3641 80 80 DDF64E1A0BD2CABE009E8FF6 /* MVXMPPChatUser.m in Sources */ = {isa = PBXBuildFile; fileRef = DDF64E180BD2CABE009E8FF6 /* MVXMPPChatUser.m */; }; 81 81 /* End PBXBuildFile section */ 82 83 /* Begin PBXContainerItemProxy section */ 84 DDBB43A60BD5DF9400EC6E55 /* PBXContainerItemProxy */ = { 85 isa = PBXContainerItemProxy; 86 containerPortal = DDBB43A20BD5DF9400EC6E55 /* Acid.xcodeproj */; 87 proxyType = 2; 88 remoteGlobalIDString = 8DC2EF5B0486A6940098B216 /* Acid.framework */; 89 remoteInfo = Acid; 90 }; 91 DDBB43B80BD5DFB000EC6E55 /* PBXContainerItemProxy */ = { 92 isa = PBXContainerItemProxy; 93 containerPortal = DDBB43A20BD5DF9400EC6E55 /* Acid.xcodeproj */; 94 proxyType = 1; 95 remoteGlobalIDString = 8DC2EF4F0486A6940098B216 /* Acid */; 96 remoteInfo = Acid; 97 }; 98 /* End PBXContainerItemProxy section */ 82 99 83 100 /* Begin PBXFileReference section */ … … 167 184 DD47412E0BD35A2E00D93AB9 /* MVXMPPChatRoom.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MVXMPPChatRoom.h; path = "Chat Core/MVXMPPChatRoom.h"; sourceTree = "<group>"; }; 168 185 DD47412F0BD35A2E00D93AB9 /* MVXMPPChatRoom.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = MVXMPPChatRoom.m; path = "Chat Core/MVXMPPChatRoom.m"; sourceTree = "<group>"; }; 186 DDBB43A20BD5DF9400EC6E55 /* Acid.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Acid.xcodeproj; path = Frameworks/Acid/Acid.xcodeproj; sourceTree = "<group>"; }; 169 187 DDF64CE30BD29E41009E8FF6 /* MVXMPPChatConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MVXMPPChatConnection.h; path = "Chat Core/MVXMPPChatConnection.h"; sourceTree = "<group>"; }; 170 188 DDF64CE40BD29E41009E8FF6 /* MVXMPPChatConnection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = MVXMPPChatConnection.m; path = "Chat Core/MVXMPPChatConnection.m"; sourceTree = "<group>"; }; 171 DDF64D520BD2A4F6009E8FF6 /* Acid.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Acid.framework; path = Frameworks/Acid.framework; sourceTree = "<group>"; };189 DDF64D520BD2A4F6009E8FF6 /* Acid.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Acid.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 172 190 DDF64E170BD2CABE009E8FF6 /* MVXMPPChatUser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MVXMPPChatUser.h; path = "Chat Core/MVXMPPChatUser.h"; sourceTree = "<group>"; }; 173 191 DDF64E180BD2CABE009E8FF6 /* MVXMPPChatUser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = MVXMPPChatUser.m; path = "Chat Core/MVXMPPChatUser.m"; sourceTree = "<group>"; }; … … 308 326 sourceTree = "<group>"; 309 327 }; 328 DDBB43A30BD5DF9400EC6E55 /* Products */ = { 329 isa = PBXGroup; 330 children = ( 331 DDBB43A70BD5DF9400EC6E55 /* Acid.framework */, 332 ); 333 name = Products; 334 sourceTree = "<group>"; 335 }; 310 336 DDF64CE20BD29DA4009E8FF6 /* XMPP Support */ = { 311 337 isa = PBXGroup; 312 338 children = ( 339 DDBB43A20BD5DF9400EC6E55 /* Acid.xcodeproj */, 313 340 DDF64CE40BD29E41009E8FF6 /* MVXMPPChatConnection.m */, 314 341 DDF64CE30BD29E41009E8FF6 /* MVXMPPChatConnection.h */, … … 458 485 ); 459 486 dependencies = ( 487 DDBB43B90BD5DFB000EC6E55 /* PBXTargetDependency */, 460 488 ); 461 489 name = "Chat Core (Framework)"; … … 495 523 productRefGroup = 089C166AFE841209C02AAC07 /* Massinova Menu Extra */; 496 524 projectDirPath = ""; 525 projectReferences = ( 526 { 527 ProductGroup = DDBB43A30BD5DF9400EC6E55 /* Products */; 528 ProjectRef = DDBB43A20BD5DF9400EC6E55 /* Acid.xcodeproj */; 529 }, 530 ); 497 531 projectRoot = ""; 498 532 shouldCheckCompatibility = 1; … … 502 536 }; 503 537 /* End PBXProject section */ 538 539 /* Begin PBXReferenceProxy section */ 540 DDBB43A70BD5DF9400EC6E55 /* Acid.framework */ = { 541 isa = PBXReferenceProxy; 542 fileType = wrapper.framework; 543 path = Acid.framework; 544 remoteRef = DDBB43A60BD5DF9400EC6E55 /* PBXContainerItemProxy */; 545 sourceTree = BUILT_PRODUCTS_DIR; 546 }; 547 /* End PBXReferenceProxy section */ 504 548 505 549 /* Begin PBXResourcesBuildPhase section */ … … 581 625 /* End PBXSourcesBuildPhase section */ 582 626 627 /* Begin PBXTargetDependency section */ 628 DDBB43B90BD5DFB000EC6E55 /* PBXTargetDependency */ = { 629 isa = PBXTargetDependency; 630 name = Acid; 631 targetProxy = DDBB43B80BD5DFB000EC6E55 /* PBXContainerItemProxy */; 632 }; 633 /* End PBXTargetDependency section */ 634 583 635 /* Begin XCBuildConfiguration section */ 584 636 1C041DDB08553AD200A5A5BA /* Release */ = { … … 609 661 EXPORTED_SYMBOLS_FILE = "Chat Core.exp"; 610 662 FRAMEWORK_VERSION = A; 611 GCC_OPTIMIZATION_LEVEL = 0;612 663 GCC_PREFIX_HEADER = Basic.pch; 613 664 INFOPLIST_FILE = "Resources/Info-ChatCore.plist"; trunk/Colloquy.xcodeproj
- Property svn:ignore changed from
*.pbxuser
*.mode*
*.perspective*
to
*.pbxuser
*.mode*
*.perspective*
.*
- Property svn:ignore changed from
trunk/Colloquy.xcodeproj/project.pbxproj
r3637 r3641 199 199 1CB2CD6E052DDC560094AAA4 /* JVChatRoomPanel.m in Sources */ = {isa = PBXBuildFile; fileRef = 1CE2BC4A042F53AD00000102 /* JVChatRoomPanel.m */; }; 200 200 1CB2CD6F052DDC560094AAA4 /* JVChatController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1CE2BC54042F75FB00000102 /* JVChatController.m */; }; 201 1CB2CD70052DDC560094AAA4 /* JVDetailCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 1CBB23DA04F03CA7000001C8 /* JVDetailCell.m */; };202 201 1CB2CD71052DDC560094AAA4 /* JVChatRoomMember.m in Sources */ = {isa = PBXBuildFile; fileRef = 1C088A0F04FCFEE700A8FE6E /* JVChatRoomMember.m */; }; 203 202 1CB2CD72052DDC560094AAA4 /* JVDirectChatPanel.m in Sources */ = {isa = PBXBuildFile; fileRef = 1CCB279E04FE93FE00A8FE6E /* JVDirectChatPanel.m */; }; … … 302 301 CBF6856308201B7A00F498FB /* main.c in Sources */ = {isa = PBXBuildFile; fileRef = CBF685330820190D00F498FB /* main.c */; }; 303 302 CBF6857708201C4C00F498FB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 089C1672FE841209C02AAC07 /* Foundation.framework */; }; 304 DD2143690BD2EDB4005F13DF /* iTunes.scpt in Copy Plugins */ = {isa = PBXBuildFile; fileRef = 1C8CE1EB05A921A00020D841 /* iTunes.scpt */; }; 305 DD21436C0BD2EDC0005F13DF /* Google.scpt in Copy Plugins */ = {isa = PBXBuildFile; fileRef = 1CD4C098078249C10003620F /* Google.scpt */; }; 303 DDBB44E20BD5E13300EC6E55 /* iTunes.scpt in Copy Plugins */ = {isa = PBXBuildFile; fileRef = 1C8CE1EB05A921A00020D841 /* iTunes.scpt */; }; 304 DDBB44E30BD5E13300EC6E55 /* Google.scpt in Copy Plugins */ = {isa = PBXBuildFile; fileRef = 1CD4C098078249C10003620F /* Google.scpt */; }; 305 DDF034100BD529AE0096B109 /* JVDetailCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 1CBB23DA04F03CA7000001C8 /* JVDetailCell.m */; }; 306 306 DDF64DA60BD2B0C3009E8FF6 /* Acid.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DDF64DA50BD2B0C3009E8FF6 /* Acid.framework */; }; 307 307 DDF64DA80BD2B0D7009E8FF6 /* Acid.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = DDF64DA50BD2B0C3009E8FF6 /* Acid.framework */; }; … … 449 449 0A6571BD0868800D001FF007 /* F-Script Support.plugin in Copy Plugins */, 450 450 1C0A19B008B041C200324E25 /* Python Support.plugin in Copy Plugins */, 451 DD 2143690BD2EDB4005F13DF/* iTunes.scpt in Copy Plugins */,452 DD 21436C0BD2EDC0005F13DF/* Google.scpt in Copy Plugins */,451 DDBB44E20BD5E13300EC6E55 /* iTunes.scpt in Copy Plugins */, 452 DDBB44E30BD5E13300EC6E55 /* Google.scpt in Copy Plugins */, 453 453 ); 454 454 name = "Copy Plugins"; … … 956 956 CBF685340820190D00F498FB /* schema.xml */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text.xml; name = schema.xml; path = Importer/schema.xml; sourceTree = "<group>"; }; 957 957 CBF687A508202F3F00F498FB /* CoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreServices.framework; path = /System/Library/Frameworks/CoreServices.framework; sourceTree = "<absolute>"; }; 958 DDF64DA50BD2B0C3009E8FF6 /* Acid.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Acid.framework; path = Frameworks/Acid.framework; sourceTree = "<group>"; };958 DDF64DA50BD2B0C3009E8FF6 /* Acid.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Acid.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 959 959 F50B0AA20170CAD701A84BDE /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; 960 960 F51A4F2B01C2DDD201EE70DE /* MVFileTransferController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = MVFileTransferController.m; path = Controllers/MVFileTransferController.m; sourceTree = "<group>"; }; … … 2383 2383 1CB2CD6E052DDC560094AAA4 /* JVChatRoomPanel.m in Sources */, 2384 2384 1CB2CD6F052DDC560094AAA4 /* JVChatController.m in Sources */, 2385 1CB2CD70052DDC560094AAA4 /* JVDetailCell.m in Sources */,2386 2385 1CB2CD71052DDC560094AAA4 /* JVChatRoomMember.m in Sources */, 2387 2386 1CB2CD72052DDC560094AAA4 /* JVDirectChatPanel.m in Sources */, … … 2447 2446 1CEC00570A20F05F004C2B86 /* JVSQLChatTranscript.m in Sources */, 2448 2447 1C415F270B350CA300239EB3 /* JVToolbarItem.m in Sources */, 2448 DDF034100BD529AE0096B109 /* JVDetailCell.m in Sources */, 2449 2449 ); 2450 2450 runOnlyForDeploymentPostprocessing = 0; trunk/Frameworks/Acid/acid.h
r3640 r3641 23 23 //============================================================================ 24 24 25 #import <Foundation/Foundation.h>26 27 #import <string.h>28 29 #import "DizSocket.h"30 31 25 #import "acid-dom.h" 32 26 #import "acid-xpath.h" 33 27 #import "acid-jabber.h" 34 trunk/Frameworks/Acid/dom/XMLAccumulator.m
r3640 r3641 24 24 25 25 #import "acid-dom.h" 26 #import <expat.h> 26 27 27 28 @implementation XMLAccumulator … … 111 112 } 112 113 } 114 } 115 116 -(void) selfCloseElement 117 { 118 [_data appendString:@"/>"]; 113 119 } 114 120 trunk/Frameworks/Acid/dom/XMLElement.m
r3640 r3641 24 24 25 25 #import "acid-dom.h" 26 #import <Foundation/NSEnumerator.h> 26 27 27 28 @interface _ElementEnumerator : NSEnumerator … … 296 297 } 297 298 298 [acc addChildren:_children ofElement:self]; 299 [acc closeElement:self]; 299 if ([_children count]) { 300 [acc addChildren:_children ofElement:self]; 301 [acc closeElement:self]; 302 } else { 303 [acc selfCloseElement]; 304 } 300 305 } 301 306 trunk/Frameworks/Acid/dom/XMLElementStream.m
r3640 r3641 25 25 #import "acid-dom.h" 26 26 #import <objc/objc-runtime.h> 27 #import <expat.h> 27 28 28 29 @interface BufferParser : NSObject <XMLElementStreamListener> trunk/Frameworks/Acid/dom/acid-dom.h
r3640 r3641 23 23 //============================================================================ 24 24 25 #import <Foundation/Foundation.h> 26 /* Fire Specific change to get rid of cdecl warnings */ 27 #define XMLCALL 28 #import <expat.h> 25 #import <Foundation/NSObject.h> 29 26 30 27 @interface XMLQName : NSObject <NSCopying> … … 210 207 211 208 -(void) openElement:(XMLElement*)elem; 209 -(void) selfCloseElement; 212 210 -(void) closeElement:(XMLElement*)elem; 213 211 -(void) addAttribute:(XMLQName*)qname withValue:(NSString*)value ofElement:(XMLElement*)elem; … … 231 229 BOOL _document_ended; 232 230 233 XML_Parser_parser;231 void* _parser; 234 232 XMLElement* _current_element; 235 233 trunk/Frameworks/Acid/extensions/NSMutableArray+InsertSort.h
r3640 r3641 23 23 //============================================================================ 24 24 25 #import <Foundation/ Foundation.h>25 #import <Foundation/NSArray.h> 26 26 27 27 @interface NSMutableArray (AcidExtensions) trunk/Frameworks/Acid/extensions/NSMutableString.m
r3640 r3641 22 22 // $Id: NSMutableString.m,v 1.1 2004/07/19 03:49:03 jtownsend Exp $ 23 23 //============================================================================ 24 25 #import <Foundation/Foundation.h>26 24 27 25 @implementation NSMutableString(_ACID_EXT) trunk/Frameworks/Acid/extensions/NSString+Misc.h
r3640 r3641 23 23 //============================================================================ 24 24 25 #import <Foundation/ Foundation.h>25 #import <Foundation/NSString.h> 26 26 27 27 @interface NSString (AcidExtensions) trunk/Frameworks/Acid/jabber/JabberGroupTracker.m
r3640 r3641 24 24 //============================================================================ 25 25 26 #import <Foundation/Foundation.h>27 26 #import "acid.h" 27 #import "NSMutableArray+InsertSort.h" 28 28 29 29 @interface JRGroup : NSObject <JabberGroup> trunk/Frameworks/Acid/jabber/JabberID.h
r3640 r3641 22 22 // $Id: JabberID.h,v 1.2 2005/04/29 18:44:44 gbooker Exp $ 23 23 //============================================================================ 24 25 #import <Foundation/NSObject.h> 24 26 25 27 /*! … … 155 157 -(NSString*) completeID; 156 158 -(NSString*) escapedCompleteID; 157 -(JabberID*) userhostJID;158 159 159 160 /*! trunk/Frameworks/Acid/jabber/JabberID.m
r3640 r3641 389 389 -(BOOL) isEqual:(JabberID*)other 390 390 { 391 if (self == other) 392 return YES; 393 if (!other || ![other isKindOfClass:[JabberID class]]) 394 return NO; 391 395 return [self compare:other] == NSOrderedSame; 392 396 } … … 394 398 -(NSComparisonResult) compare:(JabberID*)other; 395 399 { 400 if (self == other) 401 return NSOrderedSame; 396 402 return [_complete compare:other->_complete]; 397 403 } trunk/Frameworks/Acid/jabber/JabberSession.m
r3640 r3641 60 60 _curr_id = (int)self; 61 61 _expressions = [[NSMutableDictionary alloc] init]; 62 _observerMap = [[NSMutableDictionary alloc] init];62 _observerMap = CFDictionaryCreateMutable( NULL, 0, NULL, &kCFTypeDictionaryValueCallBacks ); 63 63 _authMgr = [[JabberStdAuthManager alloc] init]; 64 64 _roster = [[JabberRoster alloc] initWithSession:self]; … … 81 81 -(void) dealloc 82 82 { 83 id oldObserverMap = _observerMap;84 NSLog(@"Releasing session.");85 86 83 [_ncenter removeObserver:self]; 87 84 [_authMgr release]; … … 89 86 [_pres release]; 90 87 [_expressions release]; 91 //Make sure there are no opperations on _observerMap while we are releasing it 92 _observerMap = nil; 93 [oldObserverMap release]; 88 89 CFRelease(_observerMap); 94 90 95 91 [super dealloc]; … … 98 94 -(NSMutableArray*) getQueriesForObserver:(id)observer 99 95 { 100 NSMutableArray* result = [_observerMap objectForKey:observer];96 NSMutableArray* result = (NSMutableArray*)CFDictionaryGetValue(_observerMap, observer); 101 97 if (result == nil) 102 98 { 103 99 result = [[NSMutableArray alloc] init]; 104 [_observerMap setObject:result forKey:observer];100 CFDictionarySetValue(_observerMap, observer, result); 105 101 [result release]; 106 102 } … … 185 181 // Remove observer from _observerMap and unregister with the 186 182 // notification centre 187 [_observerMap removeObjectForKey:observer];183 CFDictionaryRemoveValue(_observerMap, observer); 188 184 [_ncenter removeObserver:observer]; 189 185 } … … 193 189 NSString* eventName = [NSString stringWithFormat:@"/packet/%@", path]; 194 190 XPathQuery* query = [_expressions objectForKey:path]; 195 NSMutableArray* queryList = [_observerMap objectForKey:observer];191 NSMutableArray* queryList = (NSMutableArray*)CFDictionaryGetValue(_observerMap, observer); 196 192 197 193 if ((query == nil) || (queryList == nil)) … … 208 204 if ([queryList count] == 0) 209 205 { 210 [_observerMap removeObjectForKey:observer];206 CFDictionaryRemoveValue(_observerMap, observer); 211 207 } 212 208 trunk/Frameworks/Acid/jabber/JabberSocket.m
r3640 r3641 24 24 25 25 #import "acid.h" 26 #import "AsyncSocket.h" 26 27 27 28 @interface JabberSocket (PRIVATE) … … 35 36 [super init]; 36 37 37 _socket = [[ DizSocketalloc] initWithDelegate:self];38 _socket = [[NSClassFromString(@"AsyncSocket") alloc] initWithDelegate:self]; 38 39 _session = [session retain]; 39 40 … … 67 68 assert(![_socket isConnected]); 68 69 69 [_socket connectToHost:host onPort:port ];70 [_socket connectToHost:host onPort:port error:NULL]; 70 71 } 71 72 … … 100 101 {} 101 102 102 - (void) onSocketConnected103 - (void) socket:(AsyncSocket *)sock didConnectToHost:(NSString *)host port:(UInt16)port 103 104 { 104 if (_useSSL) 105 { 106 [_socket startSSL]; 107 return; 108 } 109 else 110 { 111 [_session postNotificationName:JSESSION_CONNECTED object:self]; 112 _parser = [[XMLElementStream alloc] initWithListener:self]; 113 } 105 [_session postNotificationName:JSESSION_CONNECTED object:self]; 106 _parser = [[XMLElementStream alloc] initWithListener:self]; 107 [_socket readDataWithTimeout:-1. tag:0]; 114 108 } 115 109 116 -(void) onSocketSSLConnected 117 { 118 [_session postNotificationName:JSESSION_CONNECTED object:self]; 119 _parser = [[XMLElementStream alloc] initWithListener:self]; 120 } 121 122 -(void) onSocketReadData:(NSData*)data 110 - (void) socket:(AsyncSocket *)sock didReadData:(NSData*)data withTag:(long)tag 123 111 { 124 112 [_session postNotificationName:JSESSION_RAWDATA_IN object:data]; 125 113 [_parser pushData:[data bytes] ofSize:[data length]]; 114 [_socket readDataWithTimeout:-1. tag:0]; 126 115 } 127 116 128 -(void) onSocketWroteData:(NSData*)data 129 { 130 [_session postNotificationName:JSESSION_RAWDATA_OUT object:data]; 131 } 132 133 -(void) onSocketDisconnected 117 - (void) socketDidDisconnect:(AsyncSocket *)sock; 134 118 { 135 119 [_timer invalidate]; … … 138 122 } 139 123 140 - (void) onSocketConnectFailed:(int)errorcode124 - (void) socket:(AsyncSocket *)sock willDisconnectWithError:(NSError *)err; 141 125 { 142 126 [_session postNotificationName:JSESSION_ERROR_CONNECT_FAILED object:nil]; … … 146 130 { 147 131 NSData* d = [data dataUsingEncoding:NSUTF8StringEncoding]; 148 [_socket writeData:d]; 132 [_socket writeData:d withTimeout:-1. tag:0]; 133 [_session postNotificationName:JSESSION_RAWDATA_OUT object:d]; 149 134 } 150 135 trunk/Frameworks/Acid/jabber/JabberSubscriptionRequest.m
r3640 r3641 24 24 //============================================================================ 25 25 26 #import <Foundation/Foundation.h>27 26 #import "acid.h" 28 27 trunk/Frameworks/Acid/jabber/acid-jabber.h
r3640 r3641 23 23 //============================================================================ 24 24 25 #import <Foundation/Foundation.h> 26 #import "DizSocket.h" 27 #import "NSMutableArray+InsertSort.h" 28 29 #import "JabberID.h" 25 #import <Foundation/NSObject.h> 26 #import <Acid/JabberID.h> 27 30 28 /*! 31 29 @header acid-jabber.h … … 39 37 XMLElementStream, 40 38 XMLElementStreamListener; 41 @class FZSocket;39 @class AsyncSocket; 42 40 @class JabberSession; 43 44 41 45 42 /*! … … 49 46 @interface JabberSocket : NSObject <XMLElementStreamListener> 50 47 { 51 DizSocket*_socket;48 AsyncSocket* _socket; 52 49 XMLElementStream* _parser; 53 50 JabberSession* _session; … … 478 475 @interface JabberSession : NSObject 479 476 { 480 NSMutableDictionary*_observerMap;477 CFMutableDictionaryRef _observerMap; 481 478 NSMutableDictionary* _expressions; 482 479 NSNotificationCenter* _ncenter; trunk/Frameworks/Acid/utility/esession/buffer.h
r3640 r3641 22 22 23 23 #include <openssl/bn.h> 24 #include <sys/types.h> 24 25 25 26 typedef struct { trunk/Frameworks/Acid/utility/esession/esession.c
r3640 r3641 114 114 } 115 115 116 void _compute_sid(const char* key, BIGNUM* e, BIGNUM* f, BUF_MEM K,116 static void _compute_sid(const char* key, BIGNUM* e, BIGNUM* f, BUF_MEM K, 117 117 Buffer* result) 118 118 { trunk/Frameworks/Acid/utility/esession/esession.h
r3640 r3641 27 27 28 28 #include <openssl/ssl.h> 29 #include <zlib.h> 29 30 30 31 typedef enum trunk/Frameworks/Acid/utility/esession/keycache.c
r3640 r3641 64 64 } 65 65 66 unsigned long PUBKEY_hash(const PUBKEY* k)66 static unsigned long PUBKEY_hash(const PUBKEY* k) 67 67 { 68 68 return _hashkey(k->keytype, k->id); 69 69 } 70 70 71 int PUBKEY_cmp(const PUBKEY* lhs, const PUBKEY* rhs)71 static int PUBKEY_cmp(const PUBKEY* lhs, const PUBKEY* rhs) 72 72 { 73 73 int rc; … … 77 77 } 78 78 79 unsigned long PRIVKEY_hash(const PRIVKEY* k)79 static unsigned long PRIVKEY_hash(const PRIVKEY* k) 80 80 { 81 81 return _hashkey(k->keytype, k->fingerprint); 82 82 } 83 83 84 int PRIVKEY_cmp(const PRIVKEY* lhs, const PRIVKEY* rhs)84 static int PRIVKEY_cmp(const PRIVKEY* lhs, const PRIVKEY* rhs) 85 85 { 86 86 int rc; trunk/Frameworks/Acid/utility/idn/profiles.c
r3640 r3641 113 113 , 114 114 115 {0 }115 {0, 0, NULL, NULL} 116 116 }; 117 117 … … 153 153 stringprep_generic_A_1, "A.1"} 154 154 , 155 {0 }155 {0, 0, NULL, NULL} 156 156 }; 157 157 … … 195 195 stringprep_generic_A_1, "A.1"} 196 196 , 197 {0 }197 {0, 0, NULL, NULL} 198 198 }; 199 199 200 200 Stringprep_table_element stringprep_xmpp_nodeprep_prohibit[] = { 201 {0x000022}201 {0x000022, 0, {0}} 202 202 , /* #x22 (") */ 203 {0x000026}203 {0x000026, 0, {0}} 204 204 , /* #x26 (&) */ 205 {0x000027}205 {0x000027, 0, {0}} 206 206 , /* #x27 (') */ 207 {0x00002F}207 {0x00002F, 0, {0}} 208 208 , /* #x2F (/) */ 209 {0x00003A}209 {0x00003A, 0, {0}} 210 210 , /* #x3A (:) */ 211 {0x00003C}211 {0x00003C, 0, {0}} 212 212 , /* #x3C (<) */ 213 {0x00003E}213 {0x00003E, 0, {0}} 214 214 , /* #x3E (>) */ 215 {0x000040} /* #x40 (@) */216 , 217 {0 }215 {0x000040, 0, {0}} /* #x40 (@) */ 216 , 217 {0, 0, {0}} 218 218 }; 219 219 … … 261 261 stringprep_generic_A_1, "A.1"} 262 262 , 263 {0 }263 {0, 0, NULL, NULL} 264 264 }; 265 265 … … 302 302 stringprep_generic_A_1, "A.1"} 303 303 , 304 {0 }304 {0, 0, NULL, NULL} 305 305 }; 306 306 … … 332 332 "D.2"} 333 333 , 334 {0}334 {0, 0, NULL, NULL} 335 335 }; 336 336 337 337 Stringprep_table_element stringprep_iscsi_prohibit[] = { 338 {0x0000}338 {0x0000, 0, {0}} 339 339 , /* [ASCII CONTROL CHARACTERS and SPACE through ,] */ 340 {0x0001}341 , 342 {0x0002}343 , 344 {0x0003}345 , 346 {0x0004}347 , 348 {0x0005}349 , 350 {0x0006}351 , 352 {0x0007}353 , 354 {0x0008}355 , 356 {0x0009}357 , 358 {0x000A}359 , 360 {0x000B}361 , 362 {0x000C}363 , 364 {0x000D}365 , 366 {0x000E}367 , 368 {0x000F}369 , 370 {0x0010}371 , 372 {0x0011}373 , 374 {0x0012}375 , 376 {0x0013}377 , 378 {0x0014}379 , 380 {0x0015}381 , 382 {0x0016}383 , 384 {0x0017}385 , 386 {0x0018}387 , 388 {0x0019}389 , 390 {0x001A}391 , 392 {0x001B}393 , 394 {0x001C}395 , 396 {0x001D}397 , 398 {0x001E}399 , 400 {0x001F}401 , 402 {0x0020}403 , 404 {0x0021}405 , 406 {0x0022}407 , 408 {0x0023}409 , 410 {0x0024}411 , 412 {0x0025}413 , 414 {0x0026}415 , 416 {0x0027}417 , 418 {0x0028}419 , 420 {0x0029}421 , 422 {0x002A}423 , 424 {0x002B}425 , 426 {0x002C}427 , 428 {0x002F}340 {0x0001, 0, {0}} 341 , 342 {0x0002, 0, {0}} 343 , 344 {0x0003, 0, {0}} 345 , 346 {0x0004, 0, {0}} 347 , 348 {0x0005, 0, {0}} 349 , 350 {0x0006, 0, {0}} 351 , 352 {0x0007, 0, {0}} 353 , 354 {0x0008, 0, {0}} 355 , 356 {0x0009, 0, {0}} 357 , 358 {0x000A, 0, {0}} 359 , 360 {0x000B, 0, {0}} 361 , 362 {0x000C, 0, {0}} 363 , 364 {0x000D, 0, {0}} 365 , 366 {0x000E, 0, {0}} 367 , 368 {0x000F, 0, {0}} 369 , 370 {0x0010, 0, {0}} 371 , 372 {0x0011, 0, {0}} 373 , 374 {0x0012, 0, {0}} 375 , 376 {0x0013, 0, {0}} 377 , 378 {0x0014, 0, {0}} 379 , 380 {0x0015, 0, {0}} 381 , 382 {0x0016, 0, {0}} 383 , 384 {0x0017, 0, {0}} 385 , 386 {0x0018, 0, {0}} 387 , 388 {0x0019, 0, {0}} 389 , 390 {0x001A, 0, {0}} 391 , 392 {0x001B, 0, {0}} 393 , 394 {0x001C, 0, {0}} 395 , 396 {0x001D, 0, {0}} 397 , 398 {0x001E, 0, {0}} 399 , 400 {0x001F, 0, {0}} 401 , 402 {0x0020, 0, {0}} 403 , 404 {0x0021, 0, {0}} 405 , 406 {0x0022, 0, {0}} 407 , 408 {0x0023, 0, {0}} 409 , 410 {0x0024, 0, {0}} 411 , 412 {0x0025, 0, {0}} 413 , 414 {0x0026, 0, {0}} 415 , 416 {0x0027, 0, {0}} 417 , 418 {0x0028, 0, {0}} 419 , 420 {0x0029, 0, {0}} 421 , 422 {0x002A, 0, {0}} 423 , 424 {0x002B, 0, {0}} 425 , 426 {0x002C, 0, {0}} 427 , 428 {0x002F, 0, {0}} 429 429 , /* [ASCII /] */ 430 {0x003B}430 {0x003B, 0, {0}} 431 431 , /* [ASCII ; through @] */ 432 {0x003C}433 , 434 {0x003D}435 , 436 {0x003E}437 , 438 {0x003F}439 , 440 {0x0040}441 , 442 {0x005B}432 {0x003C, 0, {0}} 433 , 434 {0x003D, 0, {0}} 435 , 436 {0x003E, 0, {0}} 437 , 438 {0x003F, 0, {0}}
