Changeset 5449

Show
Ignore:
Timestamp:
03/20/08 14:59:34 (7 months ago)
Author:
morris
Message:

Add P7 libwired abstractions

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredAdditions/trunk/WNError.h

    r4979 r5449  
    3333        WNSocketConnectFailed, 
    3434        WNSocketWriteFailed, 
    35         WNSocketReadFailed 
     35        WNSocketReadFailed, 
     36         
     37        WNP7SpecLoadFailed 
    3638}; 
    3739 
  • WiredAdditions/trunk/WNError.m

    r5043 r5449  
    5353                description     = [NSString stringWithUTF8String:wi_string_cstring(wi_error_string())]; 
    5454                userInfo        = userInfo ? [[userInfo mutableCopy] autorelease] : [NSMutableDictionary dictionary]; 
    55                 [(NSMutableDictionary *) userInfo setObject:description forKey:NSLocalizedDescriptionKey]; 
     55                 
     56                if(description) 
     57                        [(NSMutableDictionary *) userInfo setObject:description forKey:NSLocalizedDescriptionKey]; 
    5658 
    5759                wi_release(pool); 
     
    9294                        case WNSocketReadFailed: 
    9395                                return WNLS(@"Socket Read Failed", @"WNError: WNSocketReadFailed title"); 
     96                                break; 
     97                                 
     98                        case WNP7SpecLoadFailed: 
     99                                return WNLS(@"Protocol Specification Load Failed", @"WNError: WNP7SpecLoadFailed title"); 
    94100                                break; 
    95101                                 
     
    137143                                break; 
    138144                                 
     145                        case WNP7SpecLoadFailed: 
     146                                return [NSSWF:WNLS(@"Could not load %@: %@.", @"WNError: WNP7SpecLoadFailed description (address, underlying error)"), 
     147                                        [argument lastPathComponent], error]; 
     148                                break; 
     149                                 
    139150                        default: 
    140151                                break; 
  • WiredAdditions/trunk/WiredNetworking.h

    r4982 r5449  
    6969#import <WiredNetworking/WNApplication.h> 
    7070#import <WiredNetworking/WNError.h> 
     71#import <WiredNetworking/WNP7Message.h> 
     72#import <WiredNetworking/WNP7Socket.h> 
     73#import <WiredNetworking/WNP7Spec.h> 
    7174#import <WiredNetworking/WNSocket.h> 
    7275#import <WiredNetworking/WNThread.h>