Changeset 3555
- Timestamp:
- 01/15/07 14:50:43 (2 years ago)
- Files:
-
- trunk/Chat Core/MVChatConnection.m (modified) (1 diff)
- trunk/Chat Core/MVIRCChatConnection.m (modified) (5 diffs)
- trunk/Controllers/MVConnectionsController.m (modified) (1 diff)
- trunk/Inspectors/JVConnectionInspector.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Chat Core/MVChatConnection.m
r3554 r3555 112 112 else if( [[serverURL scheme] isEqualToString:@"silc"] ) connectionType = MVChatConnectionSILCType; 113 113 114 if( ( self = [self initWithServer:[serverURL host] type:connectionType port:( [[serverURL port] unsignedIntValue] % 6553 5) user:[serverURL user]] ) ) {114 if( ( self = [self initWithServer:[serverURL host] type:connectionType port:( [[serverURL port] unsignedIntValue] % 65536 ) user:[serverURL user]] ) ) { 115 115 [self setNicknamePassword:[serverURL password]]; 116 116 trunk/Chat Core/MVIRCChatConnection.m
r3554 r3555 1644 1644 } 1645 1645 1646 port %= 6553 5; // some clients use ports greater than 65535, mod with 65535to get the real port1646 port %= 65536; // some clients use ports greater than 65535, mod with 65536 to get the real port 1647 1647 1648 1648 if( passive && port > 0 ) { … … 1702 1702 passive = YES; 1703 1703 1704 port %= 6553 5; // some clients use ports greater than 65535, mod with 65535to get the real port1704 port %= 65536; // some clients use ports greater than 65535, mod with 65536 to get the real port 1705 1705 1706 1706 @synchronized( _directClientConnections ) { … … 1738 1738 passive = YES; 1739 1739 1740 port %= 6553 5; // some clients use ports greater than 65535, mod with 65535to get the real port1740 port %= 65536; // some clients use ports greater than 65535, mod with 65536 to get the real port 1741 1741 1742 1742 @synchronized( _directClientConnections ) { … … 1780 1780 } 1781 1781 1782 port %= 6553 5; // some clients use ports greater than 65535, mod with 65535to get the real port1782 port %= 65536; // some clients use ports greater than 65535, mod with 65536 to get the real port 1783 1783 1784 1784 if( [fileName isCaseInsensitiveEqualToString:@"CHAT"] || [fileName isCaseInsensitiveEqualToString:@"C H A T"] ) { … … 1863 1863 passive = YES; 1864 1864 1865 port %= 6553 5; // some clients use ports greater than 65535, mod with 65535to get the real port1865 port %= 65536; // some clients use ports greater than 65535, mod with 65536 to get the real port 1866 1866 1867 1867 @synchronized( _directClientConnections ) { trunk/Controllers/MVConnectionsController.m
r3554 r3555 1148 1148 [(MVChatConnection *)[[_bookmarks objectAtIndex:row] objectForKey:@"connection"] setServer:object]; 1149 1149 } else if( [[column identifier] isEqual:@"port"] ) { 1150 [(MVChatConnection *)[[_bookmarks objectAtIndex:row] objectForKey:@"connection"] setServerPort:( [object unsignedIntValue] % 6553 5)];1150 [(MVChatConnection *)[[_bookmarks objectAtIndex:row] objectForKey:@"connection"] setServerPort:( [object unsignedIntValue] % 65536 )]; 1151 1151 } 1152 1152 [self _saveBookmarkList]; trunk/Inspectors/JVConnectionInspector.m
r3554 r3555 179 179 [_connection setUsername:[sender stringValue]]; 180 180 } else if( sender == editPort ) { 181 [_connection setServerPort:( (unsigned int)[sender intValue] % 6553 5)];181 [_connection setServerPort:( (unsigned int)[sender intValue] % 65536 )]; 182 182 } 183 183 }
