ObjFW  Diff

Differences From Artifact [4cd95b929d]:

To Artifact [3479c8733b]:


136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
	if (setsockopt(_socket, SOL_SOCKET, SO_BROADCAST,
	    (char *)&v, (socklen_t)sizeof(v)) != 0)
		@throw [OFSetOptionFailedException
		    exceptionWithObject: self
				  errNo: of_socket_errno()];

#ifdef OF_WII
	_canSendToBroadcastAddresses = allowed;
#endif
}

- (bool)canSendToBroadcastAddresses
{
#ifndef OF_WII
	int v;







|







136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
	if (setsockopt(_socket, SOL_SOCKET, SO_BROADCAST,
	    (char *)&v, (socklen_t)sizeof(v)) != 0)
		@throw [OFSetOptionFailedException
		    exceptionWithObject: self
				  errNo: of_socket_errno()];

#ifdef OF_WII
	_canSendToBroadcastAddresses = canSendToBroadcastAddresses;
#endif
}

- (bool)canSendToBroadcastAddresses
{
#ifndef OF_WII
	int v;