Changeset 3555

Show
Ignore:
Timestamp:
01/15/07 14:50:43 (2 years ago)
Author:
timothy
Message:

Mod ports with 65536, not 65535.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Chat Core/MVChatConnection.m

    r3554 r3555  
    112112        else if( [[serverURL scheme] isEqualToString:@"silc"] ) connectionType = MVChatConnectionSILCType; 
    113113 
    114         if( ( self = [self initWithServer:[serverURL host] type:connectionType port:( [[serverURL port] unsignedIntValue] % 65535 ) user:[serverURL user]] ) ) { 
     114        if( ( self = [self initWithServer:[serverURL host] type:connectionType port:( [[serverURL port] unsignedIntValue] % 65536 ) user:[serverURL user]] ) ) { 
    115115                [self setNicknamePassword:[serverURL password]]; 
    116116 
  • trunk/Chat Core/MVIRCChatConnection.m

    r3554 r3555  
    16441644                                } 
    16451645 
    1646                                 port %= 65535; // some clients use ports greater than 65535, mod with 65535 to get the real port 
     1646                                port %= 65536; // some clients use ports greater than 65535, mod with 65536 to get the real port 
    16471647 
    16481648                                if( passive && port > 0 ) { 
     
    17021702                                        passive = YES; 
    17031703 
    1704                                 port %= 65535; // some clients use ports greater than 65535, mod with 65535 to get the real port 
     1704                                port %= 65536; // some clients use ports greater than 65535, mod with 65536 to get the real port 
    17051705 
    17061706                                @synchronized( _directClientConnections ) { 
     
    17381738                                        passive = YES; 
    17391739 
    1740                                 port %= 65535; // some clients use ports greater than 65535, mod with 65535 to get the real port 
     1740                                port %= 65536; // some clients use ports greater than 65535, mod with 65536 to get the real port 
    17411741 
    17421742                                @synchronized( _directClientConnections ) { 
     
    17801780                                } 
    17811781 
    1782                                 port %= 65535; // some clients use ports greater than 65535, mod with 65535 to get the real port 
     1782                                port %= 65536; // some clients use ports greater than 65535, mod with 65536 to get the real port 
    17831783 
    17841784                                if( [fileName isCaseInsensitiveEqualToString:@"CHAT"] || [fileName isCaseInsensitiveEqualToString:@"C H A T"] ) { 
     
    18631863                                                passive = YES; 
    18641864 
    1865                                         port %= 65535; // some clients use ports greater than 65535, mod with 65535 to get the real port 
     1865                                        port %= 65536; // some clients use ports greater than 65535, mod with 65536 to get the real port 
    18661866 
    18671867                                        @synchronized( _directClientConnections ) { 
  • trunk/Controllers/MVConnectionsController.m

    r3554 r3555  
    11481148                        [(MVChatConnection *)[[_bookmarks objectAtIndex:row] objectForKey:@"connection"] setServer:object]; 
    11491149                } else if( [[column identifier] isEqual:@"port"] ) { 
    1150                         [(MVChatConnection *)[[_bookmarks objectAtIndex:row] objectForKey:@"connection"] setServerPort:( [object unsignedIntValue] % 65535 )]; 
     1150                        [(MVChatConnection *)[[_bookmarks objectAtIndex:row] objectForKey:@"connection"] setServerPort:( [object unsignedIntValue] % 65536 )]; 
    11511151                } 
    11521152                [self _saveBookmarkList]; 
  • trunk/Inspectors/JVConnectionInspector.m

    r3554 r3555  
    179179                [_connection setUsername:[sender stringValue]]; 
    180180        } else if( sender == editPort ) { 
    181                 [_connection setServerPort:( (unsigned int)[sender intValue] % 65535 )]; 
     181                [_connection setServerPort:( (unsigned int)[sender intValue] % 65536 )]; 
    182182        } 
    183183}