ObjFW  Check-in [dfd61e781e]

Overview
Comment:Use more const
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: dfd61e781ed500a7a1de325ef858f494f9548d9707e47bbe16bd79eba52440f8
User & Date: js on 2019-04-14 15:40:25
Other Links: manifest | tags
Context
2019-04-14
16:35
OFFileManager: Only open dos.library if HAVE_FILES check-in: 40589ab9d4 user: js tags: trunk
15:40
Use more const check-in: dfd61e781e user: js tags: trunk
13:35
runtime: Match Apple's +[initialize] behavior check-in: ede088a30d user: js tags: trunk
Changes

Modified src/OFDNSResolver.m from [b26d10f3a6] to [d3f87f2f5a].

116
117
118
119
120
121
122
123


124
125
126
127
128
129
130
116
117
118
119
120
121
122

123
124
125
126
127
128
129
130
131







-
+
+








/*
 * TODO:
 *
 *  - Fallback to TCP
 */

static of_run_loop_mode_t resolveRunLoopMode = @"of_dns_resolver_resolve_mode";
static const of_run_loop_mode_t resolveRunLoopMode =
    @"of_dns_resolver_resolve_mode";

@interface OFDNSResolverSettings: OFObject
{
@public
	OFArray OF_GENERIC(OFString *) *_nameServers, *_searchDomains;
	of_time_interval_t _timeout;
	unsigned int _maxAttempts, _minNumberOfDotsInAbsoluteName;

Modified src/OFTCPSocket.m from [8d03fd4bac] to [76ca7c36c5].

54
55
56
57
58
59
60



61
62
63
64
65
66
67
68
69
70
54
55
56
57
58
59
60
61
62
63
64
65

66
67
68
69
70
71
72







+
+
+


-







#import "OFOutOfMemoryException.h"
#import "OFOutOfRangeException.h"
#import "OFSetOptionFailedException.h"

#import "socket.h"
#import "socket_helpers.h"

static const of_run_loop_mode_t connectRunLoopMode =
    @"of_tcp_socket_connect_mode";

Class of_tls_socket_class = Nil;

static of_run_loop_mode_t connectRunLoopMode = @"of_tcp_socket_connect_mode";
static OFString *defaultSOCKS5Host = nil;
static uint16_t defaultSOCKS5Port = 1080;

@interface OFTCPSocket_AsyncConnectDelegate: OFObject <OFTCPSocketDelegate,
    OFTCPSocketDelegate_Private, OFDNSResolverDelegate>
{
	OFTCPSocket *_socket;