Changeset 3641

Show
Ignore:
Timestamp:
04/18/07 00:19:58 (1 year ago)
Author:
timothy
Message:

Land changes to Acid and build it with Colloquy instead of a pre-built version.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Chat Core.xcodeproj/project.pbxproj

    r3638 r3641  
    8080                DDF64E1A0BD2CABE009E8FF6 /* MVXMPPChatUser.m in Sources */ = {isa = PBXBuildFile; fileRef = DDF64E180BD2CABE009E8FF6 /* MVXMPPChatUser.m */; }; 
    8181/* 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 */ 
    8299 
    83100/* Begin PBXFileReference section */ 
     
    167184                DD47412E0BD35A2E00D93AB9 /* MVXMPPChatRoom.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MVXMPPChatRoom.h; path = "Chat Core/MVXMPPChatRoom.h"; sourceTree = "<group>"; }; 
    168185                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>"; }; 
    169187                DDF64CE30BD29E41009E8FF6 /* MVXMPPChatConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MVXMPPChatConnection.h; path = "Chat Core/MVXMPPChatConnection.h"; sourceTree = "<group>"; }; 
    170188                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; }; 
    172190                DDF64E170BD2CABE009E8FF6 /* MVXMPPChatUser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MVXMPPChatUser.h; path = "Chat Core/MVXMPPChatUser.h"; sourceTree = "<group>"; }; 
    173191                DDF64E180BD2CABE009E8FF6 /* MVXMPPChatUser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = MVXMPPChatUser.m; path = "Chat Core/MVXMPPChatUser.m"; sourceTree = "<group>"; }; 
     
    308326                        sourceTree = "<group>"; 
    309327                }; 
     328                DDBB43A30BD5DF9400EC6E55 /* Products */ = { 
     329                        isa = PBXGroup; 
     330                        children = ( 
     331                                DDBB43A70BD5DF9400EC6E55 /* Acid.framework */, 
     332                        ); 
     333                        name = Products; 
     334                        sourceTree = "<group>"; 
     335                }; 
    310336                DDF64CE20BD29DA4009E8FF6 /* XMPP Support */ = { 
    311337                        isa = PBXGroup; 
    312338                        children = ( 
     339                                DDBB43A20BD5DF9400EC6E55 /* Acid.xcodeproj */, 
    313340                                DDF64CE40BD29E41009E8FF6 /* MVXMPPChatConnection.m */, 
    314341                                DDF64CE30BD29E41009E8FF6 /* MVXMPPChatConnection.h */, 
     
    458485                        ); 
    459486                        dependencies = ( 
     487                                DDBB43B90BD5DFB000EC6E55 /* PBXTargetDependency */, 
    460488                        ); 
    461489                        name = "Chat Core (Framework)"; 
     
    495523                        productRefGroup = 089C166AFE841209C02AAC07 /* Massinova Menu Extra */; 
    496524                        projectDirPath = ""; 
     525                        projectReferences = ( 
     526                                { 
     527                                        ProductGroup = DDBB43A30BD5DF9400EC6E55 /* Products */; 
     528                                        ProjectRef = DDBB43A20BD5DF9400EC6E55 /* Acid.xcodeproj */; 
     529                                }, 
     530                        ); 
    497531                        projectRoot = ""; 
    498532                        shouldCheckCompatibility = 1; 
     
    502536                }; 
    503537/* 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 */ 
    504548 
    505549/* Begin PBXResourcesBuildPhase section */ 
     
    581625/* End PBXSourcesBuildPhase section */ 
    582626 
     627/* Begin PBXTargetDependency section */ 
     628                DDBB43B90BD5DFB000EC6E55 /* PBXTargetDependency */ = { 
     629                        isa = PBXTargetDependency; 
     630                        name = Acid; 
     631                        targetProxy = DDBB43B80BD5DFB000EC6E55 /* PBXContainerItemProxy */; 
     632                }; 
     633/* End PBXTargetDependency section */ 
     634 
    583635/* Begin XCBuildConfiguration section */ 
    584636                1C041DDB08553AD200A5A5BA /* Release */ = { 
     
    609661                                EXPORTED_SYMBOLS_FILE = "Chat Core.exp"; 
    610662                                FRAMEWORK_VERSION = A; 
    611                                 GCC_OPTIMIZATION_LEVEL = 0; 
    612663                                GCC_PREFIX_HEADER = Basic.pch; 
    613664                                INFOPLIST_FILE = "Resources/Info-ChatCore.plist"; 
  • trunk/Colloquy.xcodeproj

    • Property svn:ignore changed from
      *.pbxuser
      *.mode*
      *.perspective*
      to
      *.pbxuser
      *.mode*
      *.perspective*
      .*
  • trunk/Colloquy.xcodeproj/project.pbxproj

    r3637 r3641  
    199199                1CB2CD6E052DDC560094AAA4 /* JVChatRoomPanel.m in Sources */ = {isa = PBXBuildFile; fileRef = 1CE2BC4A042F53AD00000102 /* JVChatRoomPanel.m */; }; 
    200200                1CB2CD6F052DDC560094AAA4 /* JVChatController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1CE2BC54042F75FB00000102 /* JVChatController.m */; }; 
    201                 1CB2CD70052DDC560094AAA4 /* JVDetailCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 1CBB23DA04F03CA7000001C8 /* JVDetailCell.m */; }; 
    202201                1CB2CD71052DDC560094AAA4 /* JVChatRoomMember.m in Sources */ = {isa = PBXBuildFile; fileRef = 1C088A0F04FCFEE700A8FE6E /* JVChatRoomMember.m */; }; 
    203202                1CB2CD72052DDC560094AAA4 /* JVDirectChatPanel.m in Sources */ = {isa = PBXBuildFile; fileRef = 1CCB279E04FE93FE00A8FE6E /* JVDirectChatPanel.m */; }; 
     
    302301                CBF6856308201B7A00F498FB /* main.c in Sources */ = {isa = PBXBuildFile; fileRef = CBF685330820190D00F498FB /* main.c */; }; 
    303302                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 */; }; 
    306306                DDF64DA60BD2B0C3009E8FF6 /* Acid.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DDF64DA50BD2B0C3009E8FF6 /* Acid.framework */; }; 
    307307                DDF64DA80BD2B0D7009E8FF6 /* Acid.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = DDF64DA50BD2B0C3009E8FF6 /* Acid.framework */; }; 
     
    449449                                0A6571BD0868800D001FF007 /* F-Script Support.plugin in Copy Plugins */, 
    450450                                1C0A19B008B041C200324E25 /* Python Support.plugin in Copy Plugins */, 
    451                                 DD2143690BD2EDB4005F13DF /* iTunes.scpt in Copy Plugins */, 
    452                                 DD21436C0BD2EDC0005F13DF /* Google.scpt in Copy Plugins */, 
     451                                DDBB44E20BD5E13300EC6E55 /* iTunes.scpt in Copy Plugins */, 
     452                                DDBB44E30BD5E13300EC6E55 /* Google.scpt in Copy Plugins */, 
    453453                        ); 
    454454                        name = "Copy Plugins"; 
     
    956956                CBF685340820190D00F498FB /* schema.xml */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text.xml; name = schema.xml; path = Importer/schema.xml; sourceTree = "<group>"; }; 
    957957                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; }; 
    959959                F50B0AA20170CAD701A84BDE /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; 
    960960                F51A4F2B01C2DDD201EE70DE /* MVFileTransferController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = MVFileTransferController.m; path = Controllers/MVFileTransferController.m; sourceTree = "<group>"; }; 
     
    23832383                                1CB2CD6E052DDC560094AAA4 /* JVChatRoomPanel.m in Sources */, 
    23842384                                1CB2CD6F052DDC560094AAA4 /* JVChatController.m in Sources */, 
    2385                                 1CB2CD70052DDC560094AAA4 /* JVDetailCell.m in Sources */, 
    23862385                                1CB2CD71052DDC560094AAA4 /* JVChatRoomMember.m in Sources */, 
    23872386                                1CB2CD72052DDC560094AAA4 /* JVDirectChatPanel.m in Sources */, 
     
    24472446                                1CEC00570A20F05F004C2B86 /* JVSQLChatTranscript.m in Sources */, 
    24482447                                1C415F270B350CA300239EB3 /* JVToolbarItem.m in Sources */, 
     2448                                DDF034100BD529AE0096B109 /* JVDetailCell.m in Sources */, 
    24492449                        ); 
    24502450                        runOnlyForDeploymentPostprocessing = 0; 
  • trunk/Frameworks/Acid/acid.h

    r3640 r3641  
    2323//============================================================================ 
    2424 
    25 #import <Foundation/Foundation.h> 
    26  
    27 #import <string.h> 
    28  
    29 #import "DizSocket.h" 
    30  
    3125#import "acid-dom.h" 
    3226#import "acid-xpath.h" 
    3327#import "acid-jabber.h" 
    34  
  • trunk/Frameworks/Acid/dom/XMLAccumulator.m

    r3640 r3641  
    2424 
    2525#import "acid-dom.h" 
     26#import <expat.h> 
    2627 
    2728@implementation XMLAccumulator 
     
    111112        } 
    112113    } 
     114} 
     115 
     116-(void) selfCloseElement 
     117{ 
     118        [_data appendString:@"/>"]; 
    113119} 
    114120 
  • trunk/Frameworks/Acid/dom/XMLElement.m

    r3640 r3641  
    2424 
    2525#import "acid-dom.h" 
     26#import <Foundation/NSEnumerator.h> 
    2627 
    2728@interface _ElementEnumerator : NSEnumerator 
     
    296297    } 
    297298 
    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        } 
    300305} 
    301306 
  • trunk/Frameworks/Acid/dom/XMLElementStream.m

    r3640 r3641  
    2525#import "acid-dom.h" 
    2626#import <objc/objc-runtime.h> 
     27#import <expat.h> 
    2728 
    2829@interface BufferParser : NSObject <XMLElementStreamListener> 
  • trunk/Frameworks/Acid/dom/acid-dom.h

    r3640 r3641  
    2323//============================================================================ 
    2424 
    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> 
    2926 
    3027@interface XMLQName : NSObject <NSCopying> 
     
    210207 
    211208-(void) openElement:(XMLElement*)elem; 
     209-(void) selfCloseElement; 
    212210-(void) closeElement:(XMLElement*)elem; 
    213211-(void) addAttribute:(XMLQName*)qname withValue:(NSString*)value ofElement:(XMLElement*)elem; 
     
    231229    BOOL _document_ended; 
    232230 
    233     XML_Parser       _parser; 
     231    void*       _parser; 
    234232    XMLElement*      _current_element; 
    235233 
  • trunk/Frameworks/Acid/extensions/NSMutableArray+InsertSort.h

    r3640 r3641  
    2323//============================================================================ 
    2424 
    25 #import <Foundation/Foundation.h> 
     25#import <Foundation/NSArray.h> 
    2626 
    2727@interface NSMutableArray (AcidExtensions) 
  • trunk/Frameworks/Acid/extensions/NSMutableString.m

    r3640 r3641  
    2222// $Id: NSMutableString.m,v 1.1 2004/07/19 03:49:03 jtownsend Exp $ 
    2323//============================================================================ 
    24  
    25 #import <Foundation/Foundation.h> 
    2624 
    2725@implementation NSMutableString(_ACID_EXT) 
  • trunk/Frameworks/Acid/extensions/NSString+Misc.h

    r3640 r3641  
    2323//============================================================================ 
    2424 
    25 #import <Foundation/Foundation.h> 
     25#import <Foundation/NSString.h> 
    2626 
    2727@interface NSString (AcidExtensions) 
  • trunk/Frameworks/Acid/jabber/JabberGroupTracker.m

    r3640 r3641  
    2424//============================================================================ 
    2525 
    26 #import <Foundation/Foundation.h> 
    2726#import "acid.h" 
     27#import "NSMutableArray+InsertSort.h" 
    2828 
    2929@interface JRGroup : NSObject <JabberGroup> 
  • trunk/Frameworks/Acid/jabber/JabberID.h

    r3640 r3641  
    2222// $Id: JabberID.h,v 1.2 2005/04/29 18:44:44 gbooker Exp $ 
    2323//============================================================================ 
     24 
     25#import <Foundation/NSObject.h> 
    2426 
    2527/*! 
     
    155157-(NSString*) completeID; 
    156158-(NSString*) escapedCompleteID; 
    157 -(JabberID*) userhostJID; 
    158159 
    159160/*! 
  • trunk/Frameworks/Acid/jabber/JabberID.m

    r3640 r3641  
    389389-(BOOL) isEqual:(JabberID*)other 
    390390{ 
     391        if (self == other) 
     392                return YES; 
     393        if (!other || ![other isKindOfClass:[JabberID class]]) 
     394                return NO; 
    391395    return [self compare:other] == NSOrderedSame; 
    392396} 
     
    394398-(NSComparisonResult) compare:(JabberID*)other; 
    395399{ 
     400        if (self == other) 
     401                return NSOrderedSame; 
    396402    return [_complete compare:other->_complete]; 
    397403} 
  • trunk/Frameworks/Acid/jabber/JabberSession.m

    r3640 r3641  
    6060    _curr_id = (int)self; 
    6161    _expressions = [[NSMutableDictionary alloc] init]; 
    62     _observerMap = [[NSMutableDictionary alloc] init]
     62    _observerMap = CFDictionaryCreateMutable( NULL, 0, NULL, &kCFTypeDictionaryValueCallBacks )
    6363    _authMgr     = [[JabberStdAuthManager alloc] init]; 
    6464    _roster      = [[JabberRoster alloc] initWithSession:self]; 
     
    8181-(void) dealloc 
    8282{ 
    83     id oldObserverMap = _observerMap; 
    84     NSLog(@"Releasing session."); 
    85  
    8683    [_ncenter removeObserver:self]; 
    8784    [_authMgr release]; 
     
    8986    [_pres release]; 
    9087    [_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); 
    9490     
    9591    [super dealloc]; 
     
    9894-(NSMutableArray*) getQueriesForObserver:(id)observer 
    9995{ 
    100     NSMutableArray* result = [_observerMap objectForKey:observer]
     96    NSMutableArray* result = (NSMutableArray*)CFDictionaryGetValue(_observerMap, observer)
    10197    if (result == nil) 
    10298    { 
    10399        result = [[NSMutableArray alloc] init]; 
    104         [_observerMap setObject:result forKey:observer]
     100               CFDictionarySetValue(_observerMap, observer, result)
    105101        [result release]; 
    106102    } 
     
    185181    // Remove observer from _observerMap and unregister with the 
    186182    // notification centre 
    187     [_observerMap removeObjectForKey:observer]
     183       CFDictionaryRemoveValue(_observerMap, observer)
    188184    [_ncenter removeObserver:observer]; 
    189185} 
     
    193189    NSString* eventName = [NSString stringWithFormat:@"/packet/%@", path]; 
    194190    XPathQuery* query = [_expressions objectForKey:path]; 
    195     NSMutableArray* queryList = [_observerMap objectForKey:observer]
     191    NSMutableArray* queryList = (NSMutableArray*)CFDictionaryGetValue(_observerMap, observer)
    196192 
    197193    if ((query == nil) || (queryList == nil)) 
     
    208204    if ([queryList count] == 0) 
    209205    { 
    210         [_observerMap removeObjectForKey:observer]
     206               CFDictionaryRemoveValue(_observerMap, observer)
    211207    } 
    212208 
  • trunk/Frameworks/Acid/jabber/JabberSocket.m

    r3640 r3641  
    2424 
    2525#import "acid.h" 
     26#import "AsyncSocket.h" 
    2627 
    2728@interface JabberSocket (PRIVATE) 
     
    3536    [super init]; 
    3637 
    37     _socket = [[DizSocket alloc] initWithDelegate:self]; 
     38    _socket = [[NSClassFromString(@"AsyncSocket") alloc] initWithDelegate:self]; 
    3839    _session = [session retain];     
    3940 
     
    6768    assert(![_socket isConnected]); 
    6869 
    69     [_socket connectToHost:host onPort:port]; 
     70    [_socket connectToHost:host onPort:port error:NULL]; 
    7071} 
    7172 
     
    100101{} 
    101102 
    102 -(void) onSocketConnected 
     103- (void) socket:(AsyncSocket *)sock didConnectToHost:(NSString *)host port:(UInt16)port 
    103104{ 
    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]; 
    114108} 
    115109 
    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 
    123111{ 
    124112    [_session postNotificationName:JSESSION_RAWDATA_IN object:data]; 
    125113    [_parser pushData:[data bytes] ofSize:[data length]]; 
     114        [_socket readDataWithTimeout:-1. tag:0]; 
    126115} 
    127116 
    128 -(void) onSocketWroteData:(NSData*)data 
    129 
    130     [_session postNotificationName:JSESSION_RAWDATA_OUT object:data]; 
    131 
    132  
    133 -(void) onSocketDisconnected 
     117- (void) socketDidDisconnect:(AsyncSocket *)sock; 
    134118{ 
    135119    [_timer invalidate]; 
     
    138122} 
    139123 
    140 -(void) onSocketConnectFailed:(int)errorcode 
     124- (void) socket:(AsyncSocket *)sock willDisconnectWithError:(NSError *)err; 
    141125{ 
    142126    [_session postNotificationName:JSESSION_ERROR_CONNECT_FAILED object:nil]; 
     
    146130{ 
    147131    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]; 
    149134} 
    150135 
  • trunk/Frameworks/Acid/jabber/JabberSubscriptionRequest.m

    r3640 r3641  
    2424//============================================================================ 
    2525 
    26 #import <Foundation/Foundation.h> 
    2726#import "acid.h" 
    2827 
  • trunk/Frameworks/Acid/jabber/acid-jabber.h

    r3640 r3641  
    2323//============================================================================ 
    2424 
    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 
    3028/*! 
    3129  @header acid-jabber.h 
     
    3937    XMLElementStream, 
    4038    XMLElementStreamListener; 
    41 @class FZSocket; 
     39@class AsyncSocket; 
    4240@class JabberSession; 
    43  
    4441 
    4542/*! 
     
    4946@interface JabberSocket : NSObject <XMLElementStreamListener> 
    5047{ 
    51     DizSocket*        _socket; 
     48    AsyncSocket*      _socket; 
    5249    XMLElementStream* _parser; 
    5350    JabberSession*    _session; 
     
    478475@interface JabberSession : NSObject 
    479476{ 
    480     NSMutableDictionary*  _observerMap; 
     477    CFMutableDictionaryRef _observerMap; 
    481478    NSMutableDictionary*   _expressions; 
    482479    NSNotificationCenter*  _ncenter; 
  • trunk/Frameworks/Acid/utility/esession/buffer.h

    r3640 r3641  
    2222 
    2323#include <openssl/bn.h> 
     24#include <sys/types.h> 
    2425 
    2526typedef struct { 
  • trunk/Frameworks/Acid/utility/esession/esession.c

    r3640 r3641  
    114114} 
    115115 
    116 void _compute_sid(const char* key, BIGNUM* e, BIGNUM* f, BUF_MEM K, 
     116static void _compute_sid(const char* key, BIGNUM* e, BIGNUM* f, BUF_MEM K, 
    117117                      Buffer* result) 
    118118{ 
  • trunk/Frameworks/Acid/utility/esession/esession.h

    r3640 r3641  
    2727 
    2828#include <openssl/ssl.h> 
     29#include <zlib.h> 
    2930 
    3031typedef enum 
  • trunk/Frameworks/Acid/utility/esession/keycache.c

    r3640 r3641  
    6464} 
    6565 
    66 unsigned long PUBKEY_hash(const PUBKEY* k) 
     66static unsigned long PUBKEY_hash(const PUBKEY* k) 
    6767{ 
    6868    return _hashkey(k->keytype, k->id); 
    6969} 
    7070 
    71 int PUBKEY_cmp(const PUBKEY* lhs, const PUBKEY* rhs) 
     71static int PUBKEY_cmp(const PUBKEY* lhs, const PUBKEY* rhs) 
    7272{ 
    7373    int rc; 
     
    7777} 
    7878 
    79 unsigned long PRIVKEY_hash(const PRIVKEY* k) 
     79static unsigned long PRIVKEY_hash(const PRIVKEY* k) 
    8080{ 
    8181    return _hashkey(k->keytype, k->fingerprint); 
    8282} 
    8383 
    84 int PRIVKEY_cmp(const PRIVKEY* lhs, const PRIVKEY* rhs) 
     84static int PRIVKEY_cmp(const PRIVKEY* lhs, const PRIVKEY* rhs) 
    8585{ 
    8686    int rc; 
  • trunk/Frameworks/Acid/utility/idn/profiles.c

    r3640 r3641  
    113113  , 
    114114 
    115   {0
     115  {0, 0, NULL, NULL
    116116}; 
    117117 
     
    153153   stringprep_generic_A_1, "A.1"} 
    154154  , 
    155   {0
     155  {0, 0, NULL, NULL
    156156}; 
    157157 
     
    195195   stringprep_generic_A_1, "A.1"} 
    196196  , 
    197   {0
     197  {0, 0, NULL, NULL
    198198}; 
    199199 
    200200Stringprep_table_element stringprep_xmpp_nodeprep_prohibit[] = { 
    201   {0x000022
     201       {0x000022, 0, {0}
    202202  ,                             /* #x22 (") */ 
    203   {0x000026
     203       {0x000026, 0, {0}
    204204  ,                             /* #x26 (&) */ 
    205   {0x000027
     205       {0x000027, 0, {0}
    206206  ,                             /* #x27 (') */ 
    207   {0x00002F
     207       {0x00002F, 0, {0}
    208208  ,                             /* #x2F (/) */ 
    209   {0x00003A
     209       {0x00003A, 0, {0}
    210210  ,                             /* #x3A (:) */ 
    211   {0x00003C
     211       {0x00003C, 0, {0}
    212212  ,                             /* #x3C (<) */ 
    213   {0x00003E
     213       {0x00003E, 0, {0}
    214214  ,                             /* #x3E (>) */ 
    215   {0x000040}                  /* #x40 (@) */ 
    216   , 
    217   {0
     215       {0x000040, 0, {0}}                     /* #x40 (@) */ 
     216  , 
     217  {0, 0, {0}
    218218}; 
    219219 
     
    261261   stringprep_generic_A_1, "A.1"} 
    262262  , 
    263   {0
     263  {0, 0, NULL, NULL
    264264}; 
    265265 
     
    302302   stringprep_generic_A_1, "A.1"} 
    303303  , 
    304   {0
     304  {0, 0, NULL, NULL
    305305}; 
    306306 
     
    332332   "D.2"} 
    333333  , 
    334   {0
     334       {0, 0, NULL, NULL
    335335}; 
    336336 
    337337Stringprep_table_element stringprep_iscsi_prohibit[] = { 
    338   {0x0000
     338       {0x0000, 0, {0}
    339339  ,                             /* [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}
    429429  ,                             /* [ASCII /] */ 
    430   {0x003B
     430       {0x003B, 0, {0}
    431431  ,                             /* [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}