Differences From Artifact [009edc504e]:
- File
src/OFDatagramSocket.m
— part of check-in
[7460d2ccd8]
at
2024-08-17 17:30:51
on branch trunk
— Delay socket initialization as long as possible
On game consoles, initializing sockets takes a significant amount of
time. When not delaying socket initializing, that time is spent during
startup even when the application might never use sockets.Worse yet, on Amiga, sockets might not be available at all and the
application will fail to start up, even when the application might never
use sockets. (user: js, size: 10919) [annotate] [blame] [check-ins using]
To Artifact [7c8f8ff231]:
- File src/OFDatagramSocket.m — part of check-in [7b0cd744dc] at 2024-08-21 20:14:09 on branch trunk — Make ObjFW compile on macOS/PowerPC 64 (user: js, size: 10930) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
153 154 155 156 157 158 159 | #endif } - (bool)canSendToBroadcastAddresses { #ifndef OF_WII int v; | | | 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | #endif } - (bool)canSendToBroadcastAddresses { #ifndef OF_WII int v; socklen_t len = (socklen_t)sizeof(v); if (getsockopt(_socket, SOL_SOCKET, SO_BROADCAST, (char *)&v, &len) != 0 || len != sizeof(v)) @throw [OFGetOptionFailedException exceptionWithObject: self errNo: _OFSocketErrNo()]; |
︙ | ︙ |