Skip to content

Commit

Permalink
added SO_BROADCAST (optname =32) in SetSocketOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemoralis committed Jan 7, 2025
1 parent cb216d8 commit d85f631
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/libraries/network/posix_sockets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ int PosixSocket::SetSocketOptions(int level, int optname, const void* optval, un
case ORBIS_NET_SO_REUSEADDR:
return ConvertReturnErrorCode(
setsockopt(sock, level, SO_REUSEADDR, (const char*)optval, optlen));
case ORBIS_NET_SO_BROADCAST:
return ConvertReturnErrorCode(
setsockopt(sock, level, SO_BROADCAST, (const char*)optval, optlen));
}
}
UNREACHABLE_MSG("Unknown level ={} optname ={}", level, optname);
Expand Down

0 comments on commit d85f631

Please sign in to comment.