App Sandbox and UDP broadcast

When using the following API, is it expected that the app would require both incoming and outgoing permissions with App Sandbox?

public func sendto(_: Int32, _: UnsafeRawPointer!, _: Int, _: Int32, _: UnsafePointer<sockaddr>!, _: socklen_t) -> Int

Since I'm only sending UDP broadcasts, I would have expected outgoing to be sufficient.

Thanks!

Since I'm only sending UDP broadcasts, I would have expected outgoing to be sufficient.

Does that mean that you tried this and it failed without both entitlements?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Sorry for the delay in replying. Yes, I did try it and it failed without both entitlements. It's not a blocker as the App Store review accepted it anyways, but I just found it a bit odd.

App Sandbox and UDP broadcast
 
 
Q