Differences From Artifact [d1a692f4d4]:
- File src/OFHTTPServer.m — part of check-in [176e97bd4d] at 2021-08-07 23:25:13 on branch trunk — Make Apple GCC 4.0.1 happy again (user: js, size: 21123) [annotate] [blame] [check-ins using] [more...]
To Artifact [48c91c9511]:
- File
src/OFHTTPServer.m
— part of check-in
[a5a3047210]
at
2021-11-05 22:42:16
on branch trunk
— Remove TLS server support
The current API is too tied to OpenSSL. (user: js, size: 19680) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
807 808 809 810 811 812 813 |
}
- (uint16_t)port
{
return _port;
}
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 807 808 809 810 811 812 813 814 815 816 817 818 819 820 |
}
- (uint16_t)port
{
return _port;
}
#ifdef OF_HAVE_THREADS
- (void)setNumberOfThreads: (size_t)numberOfThreads
{
if (numberOfThreads == 0)
@throw [OFInvalidArgumentException exception];
if (_listeningSocket != nil)
|
| ︙ | ︙ | |||
895 896 897 898 899 900 901 | if (_host == nil) @throw [OFInvalidArgumentException exception]; if (_listeningSocket != nil) @throw [OFAlreadyConnectedException exception]; | < < < < < < < < < < < < < | < | 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 |
if (_host == nil)
@throw [OFInvalidArgumentException exception];
if (_listeningSocket != nil)
@throw [OFAlreadyConnectedException exception];
_listeningSocket = [[OFTCPSocket alloc] init];
_port = [_listeningSocket bindToHost: _host port: _port];
[_listeningSocket listen];
#ifdef OF_HAVE_THREADS
if (_numberOfThreads > 1) {
OFMutableArray *threads =
[OFMutableArray arrayWithCapacity: _numberOfThreads - 1];
|
| ︙ | ︙ |