ObjXMPP  Check-in [d5b95a3e8c]

Overview
Comment:Fix connecting to servers with SRV records
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d5b95a3e8c8712c0a85e67362905d5444d2b452fa0de3221413a84defd796b72
User & Date: js on 2019-01-27 15:29:14
Other Links: manifest | tags
Context
2019-03-16
20:58
Use dot syntax check-in: abf66b5c9b user: js tags: trunk
2019-01-27
15:29
Fix connecting to servers with SRV records check-in: d5b95a3e8c user: js tags: trunk
2019-01-23
20:23
Fix compilation with GCC check-in: 9b61e47762 user: js tags: trunk
Changes

Modified src/XMPPConnection.m from [505bfd84f6] to [c7bf092d14].

342
343
344
345
346
347
348
349


350



351

352
353
354
355
356
357
358

	_socket = [[OFTCPSocket alloc] init];
	[(OFTCPSocket *)_socket setDelegate: self];

	if (_server != nil)
		[_socket asyncConnectToHost: _server
				       port: _port];
	else


		[[OFThread DNSResolver] asyncResolveHost: _domainToASCII



						delegate: self];


	objc_autoreleasePoolPop(pool);
}

-  (bool)xmpp_parseBuffer: (const void *)buffer
		   length: (size_t)length
{







|
>
>
|
>
>
>
|
>







342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364

	_socket = [[OFTCPSocket alloc] init];
	[(OFTCPSocket *)_socket setDelegate: self];

	if (_server != nil)
		[_socket asyncConnectToHost: _server
				       port: _port];
	else {
		OFString *SRVDomain = [_domainToASCII
		    stringByPrependingString: @"_xmpp-client._tcp."];
		[[OFThread DNSResolver]
		    asyncResolveHost: SRVDomain
			 recordClass: OF_DNS_RESOURCE_RECORD_CLASS_IN
			  recordType: OF_DNS_RESOURCE_RECORD_TYPE_SRV
			    delegate: self];
	}

	objc_autoreleasePoolPop(pool);
}

-  (bool)xmpp_parseBuffer: (const void *)buffer
		   length: (size_t)length
{