Changeset 4980

Show
Ignore:
Timestamp:
10/19/07 13:26:20 (9 months ago)
Author:
morris
Message:

Sync with WiredAdditions?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/WCConnection.h

    r4799 r4980  
    142142 
    143143- (WIURL *)URL; 
    144 - (WISocket *)socket; 
     144- (WNSocket *)socket; 
    145145- (BOOL)isConnected; 
    146146- (double)protocol; 
  • WiredClient/trunk/WCError.h

    r4439 r4980  
    4242 
    4343 
    44 @interface WCError : WIError 
     44@interface WCError : WNError 
    4545 
    4646#define WCWiredClientErrorDomain        @"WCWiredClientErrorDomain" 
  • WiredClient/trunk/WCLink.h

    r4799 r4980  
    3030 
    3131@interface WCLink : WIObject { 
    32         WISocket                              *_socket; 
     32        WNSocket                              *_socket; 
    3333        WIURL                                   *_url; 
    3434         
     
    5454 
    5555- (WIURL *)URL; 
    56 - (WISocket *)socket; 
     56- (WNSocket *)socket; 
    5757- (BOOL)isReading; 
    5858 
     
    7373 
    7474- (void)linkConnected:(WCLink *)link; 
    75 - (void)linkClosed:(WCLink *)link error:(WIError *)error; 
     75- (void)linkClosed:(WCLink *)link error:(WNError *)error; 
    7676- (void)linkTerminated:(WCLink *)link; 
    7777- (void)link:(WCLink *)link sentCommand:(NSString *)command; 
  • WiredClient/trunk/WCLink.m

    r4799 r4980  
    122122 
    123123 
    124 - (WISocket *)socket { 
     124- (WNSocket *)socket { 
    125125        return _socket; 
    126126} 
     
    139139        _reading = YES; 
    140140        _terminating = NO; 
    141  
    142         [WIThread detachNewThreadSelector:@selector(linkThread:) toTarget:self withObject:NULL]; 
     141         
     142        [WNThread detachNewThreadSelector:@selector(linkThread:) toTarget:self withObject:NULL]; 
    143143} 
    144144 
     
    206206        NSAutoreleasePool       *pool, *loopPool = NULL; 
    207207        NSString                        *string, *arguments; 
    208         WIError                               *error = NULL; 
    209         WISocketContext               *context; 
    210         WIAddress                     *address; 
     208        WNError                               *error = NULL; 
     209        WNSocketContext               *context; 
     210        WNAddress                     *address; 
    211211        WCProtocolMessage       message; 
    212212        NSUInteger                      i = 0; 
     
    217217        [_delegate retain]; 
    218218         
    219         context = [WISocketContext socketContextForClient]; 
     219        context = [WNSocketContext socketContextForClient]; 
    220220        [context setSSLCiphers:[WCSettings objectForKey:WCSSLControlCiphers]]; 
    221221         
    222         address = [WIAddress addressWithString:[_url host] error:&error]; 
     222        address = [WNAddress addressWithString:[_url host] error:&error]; 
    223223         
    224224        if(!address) 
     
    227227        [address setPort:[_url port]]; 
    228228 
    229         _socket = [[WISocket alloc] initWithAddress:address type:WISocketTCP]; 
     229        _socket = [[WNSocket alloc] initWithAddress:address type:WNSocketTCP]; 
    230230        [_socket setInteractive:YES]; 
    231231         
     
    252252                } 
    253253                else if(!string) { 
    254                         if([[[error userInfo] objectForKey:WILibWiredErrorKey] code] == ETIMEDOUT) { 
     254                        if([[[error userInfo] objectForKey:WNLibWiredErrorKey] code] == ETIMEDOUT) { 
    255255                                continue; 
    256256                        } else { 
  • WiredClient/trunk/WCServerConnection.m

    r4831 r4980  
    697697 
    698698 
    699 - (void)linkClosed:(WCLink *)link error:(WIError *)error { 
     699- (void)linkClosed:(WCLink *)link error:(WNError *)error { 
    700700        if(error) 
    701701                [self postNotificationName:WCConnectionDidClose object:self userInfo:[NSDictionary dictionaryWithObject:error forKey:WCErrorKey]]; 
     
    10381038 
    10391039 
    1040 - (WISocket *)socket { 
     1040- (WNSocket *)socket { 
    10411041        return [_link socket]; 
    10421042} 
  • WiredClient/trunk/WCServerInfo.m

    r4963 r4980  
    6666 
    6767- (void)_updateServerInfo { 
    68         WISocket              *socket; 
     68        WNSocket              *socket; 
    6969        WIURL                   *url; 
    7070        WCServer                *server; 
  • WiredClient/trunk/WCTrackerConnection.m

    r4799 r4980  
    247247 
    248248 
    249 - (void)linkClosed:(WCLink *)link error:(WIError *)error { 
     249- (void)linkClosed:(WCLink *)link error:(WNError *)error { 
    250250        if(error) 
    251251                [self postNotificationName:WCConnectionDidClose object:self userInfo:[NSDictionary dictionaryWithObject:error forKey:WCErrorKey]]; 
     
    356356 
    357357 
    358 - (WISocket *)socket { 
     358- (WNSocket *)socket { 
    359359        return [_link socket]; 
    360360} 
  • WiredClient/trunk/WCTrackers.m

    r4976 r4980  
    446446 
    447447- (IBAction)open:(id)sender { 
    448         WIAddress                     *address; 
    449         WIError                               *error; 
     448        WNAddress                     *address; 
     449        WNError                               *error; 
    450450        WIURL                           *url; 
    451451        WCTracker                       *tracker; 
     
    458458                 
    459459                if(!url && [tracker netService]) { 
    460                         address = [WIAddress addressWithNetService:[tracker netService] error:&error]; 
     460                        address = [WNAddress addressWithNetService:[tracker netService] error:&error]; 
    461461                         
    462462                        if(address) 
  • WiredClient/trunk/WCTransfers.m

    r4805 r4980  
    435435 
    436436- (void)_startTransfer:(WCTransfer *)transfer { 
    437         [WIThread detachNewThreadSelector:@selector(transferThread:) toTarget:self withObject:transfer]; 
     437        [WNThread detachNewThreadSelector:@selector(transferThread:) toTarget:self withObject:transfer]; 
    438438 
    439439        [[self connection] triggerEvent:WCEventsTransferStarted info1:transfer]; 
     
    730730        NSFileHandle                    *fileHandle; 
    731731        NSString                                *path; 
    732         WIAddress                             *address; 
    733         WISocketContext                       *context; 
    734         WISocket                              *socket; 
     732        WNAddress                             *address; 
     733        WNSocketContext                       *context; 
     734        WNSocket                              *socket; 
    735735        WCFile                                  *file; 
    736736        WCError                                 *error; 
     
    767767        [fileHandle seekToEndOfFile]; 
    768768         
    769         context = [WISocketContext socketContextForClient]; 
     769        context = [WNSocketContext socketContextForClient]; 
    770770         
    771771        if([WCSettings boolForKey:WCEncryptTransfers]) 
     
    774774                [context setSSLCiphers:[WCSettings objectForKey:WCSSLNullTransferCiphers]]; 
    775775         
    776         address = [WIAddress addressWithString:[[transfer URL] host] error:&error]; 
     776        address = [WNAddress addressWithString:[[transfer URL] host] error:&error]; 
    777777         
    778778        if(!address) { 
     
    784784        [address setPort:[[transfer URL] port]]; 
    785785 
    786         socket = [[[WISocket alloc] initWithAddress:address type:WISocketTCP] autorelease]; 
     786        socket = [[[WNSocket alloc] initWithAddress:address type:WNSocketTCP] autorelease]; 
    787787        [socket setInteractive:NO]; 
    788788         
     
    903903        NSFileHandle                    *fileHandle; 
    904904        NSString                                *path; 
    905         WIAddress                             *address; 
    906         WISocketContext                       *context; 
    907         WISocket                              *socket; 
     905        WNAddress                             *address; 
     906        WNSocketContext                       *context; 
     907        WNSocket                              *socket; 
    908908        WCFile                                  *file; 
    909909        WCError                                 *error; 
     
    931931        [fileHandle seekToFileOffset:[file offset]]; 
    932932         
    933         context = [WISocketContext socketContextForClient]; 
     933        context = [WNSocketContext socketContextForClient]; 
    934934         
    935935        if([WCSettings boolForKey:WCEncryptTransfers]) 
     
    938938                [context setSSLCiphers:[WCSettings objectForKey:WCSSLNullTransferCiphers]]; 
    939939         
    940         address = [WIAddress addressWithString:[[transfer URL] host] error:&error]; 
     940        address = [WNAddress addressWithString:[[transfer URL] host] error:&error]; 
    941941         
    942942        if(!address) { 
     
    948948        [address setPort:[[transfer URL] port]]; 
    949949 
    950         socket = [[[WISocket alloc] initWithAddress:address type:WISocketTCP] autorelease]; 
     950        socket = [[[WNSocket alloc] initWithAddress:address type:WNSocketTCP] autorelease]; 
    951951        [socket setInteractive:NO]; 
    952952         
  • WiredClient/trunk/WiredClient.xcodeproj/project.pbxproj

    r4789 r4980  
    3131                        productName = Packaging; 
    3232                }; 
    33                 A5E8BB49087490330010F2A4 /* Wired Additions */ = { 
     33                A5E8BB49087490330010F2A4 /* Wired Networking */ = { 
    3434                        isa = PBXAggregateTarget; 
    35                         buildConfigurationList = A5E8BB4D087490360010F2A4 /* Build configuration list for PBXAggregateTarget "Wired Additions" */; 
     35                        buildConfigurationList = A5E8BB4D087490360010F2A4 /* Build configuration list for PBXAggregateTarget "Wired Networking" */; 
    3636                        buildPhases = ( 
    37                                 A5E8BB48087490330010F2A4 /* Run Script (Wired Additions) */, 
     37                                A5E8BB48087490330010F2A4 /* Run Script (Wired Networking) */, 
    3838                        ); 
    3939                        dependencies = ( 
    4040                        ); 
    41                         name = "Wired Additions"; 
     41                        name = "Wired Networking"; 
    4242                        productName = "Wired Additions"; 
    4343                }; 
     
    4747                771BDE730B70A6CC00E14B79 /* Reconnect.tiff in Resources */ = {isa = PBXBuildFile; fileRef = 771BDE720B70A6CC00E14B79 /* Reconnect.tiff */; }; 
    4848                771E6D510755F506000F9195 /* WCConversation.m in Sources */ = {isa = PBXBuildFile; fileRef = 771E6D4F0755F506000F9195 /* WCConversation.m */; }; 
     49                774C35600CC8C91B00716F37 /* WiredNetworking.framework in Copy Files (Frameworks) */ = {isa = PBXBuildFile; fileRef = 774C34D90CC8B57700716F37 /* WiredNetworking.framework */; }; 
     50                774C35F00CC8CA8900716F37 /* WiredNetworking.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 774C34D90CC8B57700716F37 /* WiredNetworking.framework */; }; 
    4951                777D36C50987E125005B5EC1 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 777D36C40987E125005B5EC1 /* WebKit.framework */; }; 
    5052                777D37490987E8C6005B5EC1 /* Finder.tiff in Resources */ = {isa = PBXBuildFile; fileRef = 777D37480987E8C6005B5EC1 /* Finder.tiff */; }; 
     
    228230 
    229231/* Begin PBXContainerItemProxy section */ 
     232                774897930CC8A63300E95A83 /* PBXContainerItemProxy */ = { 
     233                        isa = PBXContainerItemProxy; 
     234                        containerPortal = A544C1B90758E0E9008446CF /* WiredAdditions.xcodeproj */; 
     235                        proxyType = 2; 
     236                        remoteGlobalIDString = 774897900CC8A63200E95A83; 
     237                        remoteInfo = "Wired Additions copy"; 
     238                }; 
    230239                A5C4786907AAE13200F87F7A /* PBXContainerItemProxy */ = { 
    231240                        isa = PBXContainerItemProxy; 
     
    260269                                A5884BC40BF4D79500AA20E8 /* Growl.framework in Copy Files (Frameworks) */, 
    261270                                A564407C0A2607B000ADF4F5 /* WiredAdditions.framework in Copy Files (Frameworks) */, 
     271                                774C35600CC8C91B00716F37 /* WiredNetworking.framework in Copy Files (Frameworks) */, 
    262272                        ); 
    263273                        name = "Copy Files (Frameworks)"; 
     
    275285                771E6D4E0755F506000F9195 /* WCConversation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WCConversation.h; sourceTree = "<group>"; }; 
    276286                771E6D4F0755F506000F9195 /* WCConversation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WCConversation.m; sourceTree = "<group>"; }; 
     287                774C34D90CC8B57700716F37 /* WiredNetworking.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = WiredNetworking.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 
    277288                777D36C40987E125005B5EC1 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = /System/Library/Frameworks/WebKit.framework; sourceTree = "<absolute>"; }; 
    278289                777D37480987E8C6005B5EC1 /* Finder.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = Finder.tiff; sourceTree = "<group>"; }; 
     
    589600                                A5884BA90BF4D78200AA20E8 /* Growl.framework in Frameworks */, 
    590601                                A564407B0A2607AC00ADF4F5 /* WiredAdditions.framework in Frameworks */, 
     602                                774C35F00CC8CA8900716F37 /* WiredNetworking.framework in Frameworks */, 
    591603                        ); 
    592604                        runOnlyForDeploymentPostprocessing = 0; 
     
    622634                                A58411B9070C2279001A1AA2 /* Wired Client.app */, 
    623635                                A56440090A26079A00ADF4F5 /* WiredAdditions.framework */, 
     636                                774C34D90CC8B57700716F37 /* WiredNetworking.framework */, 
    624637                        ); 
    625638                        name = Products; 
     
    631644                                A52B1C4706C408210033D317 /* Classes */, 
    632645                                77B5F96B097FDD2900C055E1 /* Additions */, 
    633                                 29B97315FDCFA39411CA2CEA /* Other Sources */, 
     646                                29B97315FDCFA39411CA2CEA /* Sources */, 
    634647                                A5E8BABF08748D6D0010F2A4 /* Config */, 
    635648                                A5E8BABE08748D4A0010F2A4 /* Scripts */, 
     
    644657                        sourceTree = "<group>"; 
    645658                }; 
    646                 29B97315FDCFA39411CA2CEA /* Other Sources */ = { 
     659                29B97315FDCFA39411CA2CEA /* Sources */ = { 
    647660                        isa = PBXGroup; 
    648661                        children = ( 
     
    650663                                32CA4F630368D1EE00C91783 /* prefix.pch */, 
    651664                        ); 
    652                         name = "Other Sources"
     665                        name = Sources
    653666                        sourceTree = "<group>"; 
    654667                }; 
     
    11571170                        children = ( 
    11581171                                A5E8BAFA08748EFD0010F2A4 /* WiredAdditions.framework */, 
     1172                                774897940CC8A63300E95A83 /* WiredNetworking.framework */, 
    11591173                        ); 
    11601174                        name = Products; 
     
    12031217                        targets = ( 
    12041218                                8D1107260486CEB800E47090 /* Wired Client */, 
    1205                                 A5E8BB49087490330010F2A4 /* Wired Additions */, 
     1219                                A5E8BB49087490330010F2A4 /* Wired Networking */, 
    12061220                                77F05B800751E75A004F4E0E /* Localization */, 
    12071221                                A5D9730A078F0D1700CD982E /* Distribution */, 
     
    12111225 
    12121226/* Begin PBXReferenceProxy section */ 
     1227                774897940CC8A63300E95A83 /* WiredNetworking.framework */ = { 
     1228                        isa = PBXReferenceProxy; 
     1229                        fileType = wrapper.framework; 
     1230                        path = WiredNetworking.framework; 
     1231                        remoteRef = 774897930CC8A63300E95A83 /* PBXContainerItemProxy */; 
     1232                        sourceTree = BUILT_PRODUCTS_DIR; 
     1233                }; 
    12131234                A5E8BAFA08748EFD0010F2A4 /* WiredAdditions.framework */ = { 
    12141235                        isa = PBXReferenceProxy; 
     
    13941415                        shellScript = "PATH=\"/usr/local/bin:$PATH\" perl version.pl; exit 0"; 
    13951416                }; 
    1396                 A5E8BB48087490330010F2A4 /* Run Script (Wired Additions) */ = { 
     1417                A5E8BB48087490330010F2A4 /* Run Script (Wired Networking) */ = { 
    13971418                        isa = PBXShellScriptBuildPhase; 
    13981419                        buildActionMask = 2147483647; 
     
    14011422                        inputPaths = ( 
    14021423                        ); 
    1403                         name = "Run Script (Wired Additions)"; 
     1424                        name = "Run Script (Wired Networking)"; 
    14041425                        outputPaths = ( 
    14051426                        ); 
    14061427                        runOnlyForDeploymentPostprocessing = 0; 
    14071428                        shellPath = /bin/sh; 
    1408                         shellScript = "cd WiredAdditions/\n/usr/bin/xcodebuild -target \"Wired Additions\" -configuration \"$BUILD_STYLE\" SYMROOT=\"$SYMROOT\" OBJROOT=\"$OBJROOT\" $ACTION || exit 1"; 
     1429                        shellScript = "cd WiredAdditions/\n/usr/bin/xcodebuild -target \"Wired Networking\" -configuration \"$BUILD_STYLE\" SYMROOT=\"$SYMROOT\" OBJROOT=\"$OBJROOT\" $ACTION || exit 1"; 
    14091430                }; 
    14101431/* End PBXShellScriptBuildPhase section */ 
     
    14781499                A5E8BB6A087490C80010F2A4 /* PBXTargetDependency */ = { 
    14791500                        isa = PBXTargetDependency; 
    1480                         target = A5E8BB49087490330010F2A4 /* Wired Additions */; 
     1501                        target = A5E8BB49087490330010F2A4 /* Wired Networking */; 
    14811502                        targetProxy = A5E8BB69087490C80010F2A4 /* PBXContainerItemProxy */; 
    14821503                }; 
     
    21842205                        defaultConfigurationName = Debug/Native/32; 
    21852206                }; 
    2186                 A5E8BB4D087490360010F2A4 /* Build configuration list for PBXAggregateTarget "Wired Additions" */ = { 
     2207                A5E8BB4D087490360010F2A4 /* Build configuration list for PBXAggregateTarget "Wired Networking" */ = { 
    21872208                        isa = XCConfigurationList; 
    21882209                        buildConfigurations = ( 
  • WiredClient/trunk/prefix.pch

    r4852 r4980  
    3636#import <Growl/Growl.h> 
    3737#import <WiredAdditions/WiredAdditions.h> 
     38#import <WiredNetworking/WiredNetworking.h> 
    3839 
    3940// --- mach layer