695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
|
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
|
-
+
-
+
|
uint16_t port;
OFNumber *URLPort;
[_client close];
if ([URL.scheme caseInsensitiveCompare: @"https"] ==
OFOrderedSame) {
if (of_tls_socket_class == Nil)
if (OFTLSSocketClass == Nil)
@throw [OFUnsupportedProtocolException
exceptionWithURL: URL];
sock = [[[of_tls_socket_class alloc] init] autorelease];
sock = [[[OFTLSSocketClass alloc] init] autorelease];
port = 443;
} else {
sock = [OFTCPSocket socket];
port = 80;
}
URLPort = URL.port;
|