Im trying to figure out what is the most "optimized" socket buffer size on iOS, when I query KIPC_MAXSOCKBUF with sysctl it returns a 4Mb buffer size which seems to me pretty high... From my experience socket recv performance seems better when using the "default_continuous_buffer_size" of the system (Unix guy speaking here!) however I cannot run a sysctl -a on iOS to get that info... and its also not available through the C interface for sysctl (or does it have a different name?).
Does anyone else have tested what is the most performant recv socket buffer size on iOS?