ObjFW  Check-in [98a5cc9eac]

Overview
Comment:Fix OFSCTPSocket on Solaris
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 98a5cc9eac42b2c192be5859734562cfdf721fcc45da7223bfa6cd069eff8e93
User & Date: js on 2024-08-17 21:24:29
Other Links: manifest | tags
Context
2024-08-17
21:25
PLATFORMS.md: Add Solaris/SPARC64 check-in: 7ccd2db127 user: js tags: trunk
21:24
Fix OFSCTPSocket on Solaris check-in: 98a5cc9eac user: js tags: trunk
21:13
tests: Fix symlinking libobjfwhid.so.$major.$minor check-in: a791241853 user: js tags: trunk
Changes

Modified src/OFSCTPSocket.m from [ae3353be38] to [3e4042fb0e].

480
481
482
483
484
485
486


487
488
489
490
491

492
493
494
495
496
497
498
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501







+
+





+







	    (socklen_t)sizeof(sndinfo), SCTP_SENDV_SNDINFO, 0)) < 0)
		@throw [OFWriteFailedException
		    exceptionWithObject: self
			requestedLength: length
			   bytesWritten: 0
				  errNo: _OFSocketErrNo()];

#ifndef OF_SOLARIS
	/* Solaris seems to just return 0. */
	if ((size_t)bytesWritten != length)
		@throw [OFWriteFailedException exceptionWithObject: self
						   requestedLength: length
						      bytesWritten: bytesWritten
							     errNo: 0];
#endif
}

- (void)asyncSendData: (OFData *)data info: (OFSCTPMessageInfo)info
{
	[self asyncSendData: data info: nil runLoopMode: OFDefaultRunLoopMode];
}