Thank you for your reply (and, indeed all the advice and monitoring you’ve been doing for the past few years — I‘ve read most of your posts.)
One thing that I just can’t discern, through neither documentation, nor discussions, is what happens when I try to send a large message over UDP through Network framework. Given that there are no constraints on the size of a message in Network, let’s suppose I (stupidly) just send 1 megabyte of Data as a single message.
Does Network:
Say, “forget it!” (i.e. error). That’s just too big.
Break it into large packets (anything way over the MTU) and send it (which would require reassembling it?)
Break it into packets of approximately MTU size (say between 500 bytes and 1500 bytes) which again requires Network to reassemble on the other side.
Suppose I ask to send 30K as a single message:
Does Network just send this as a single large packet? (I assume “yes”)
Or does Network still break it down into more MTU sized chunks, again requiring reassembly by Network on the other side? (I assume “no”)
Last question: I understand fragmentation is “bad”. Does this mean if I opt to use Network and UDP, I should always try to break my messages up into chunks of between 500 and 1500 bytes (depending on what I believe the MTU is)?
Thanks for the QUIC note, which I am unfamiliar with. I will read about this, and maybe that’s what I want.
—————————-
My actual scenario is trying to use my iPad to see the camera stream from my iPhone, which is located perhaps 10 to 20 feet away from the iPad, but up on a tripod (perhaps in a dockkit accessory). I want to both see what the iPhone sees and possibly control the positioning of the iPhone in the dockkit accessory.
So yes it is streaming video, but from extremely close range. Assuming Network forms a peer-to-peer connection in places where I don’t have a wifi network (say, outside!) this would fantastic.