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;
|