Tcp/udp probing using network framework

I want to use network framework to just probe tcp or udb endpoint and read the RTT value. In wwdc video , i could see a sample app which does exactly same, however i could not find the source code of the same. Can somebody help how to achieve probing? Thanks.

Answered by Systems Engineer in 403484022

There is sample code for probing connection metrics with Network framework found here. This is part of the NWConnection.DataTransferReport API which can be found here. Inside pathReports you should be able to see metrics like RTT.


Matt Eaton

DTS Engineering, CoreOS

meaton3 at apple.com

Accepted Answer

There is sample code for probing connection metrics with Network framework found here. This is part of the NWConnection.DataTransferReport API which can be found here. Inside pathReports you should be able to see metrics like RTT.


Matt Eaton

DTS Engineering, CoreOS

meaton3 at apple.com

Thanks, I was looking for this only 🙂

Tcp/udp probing using network framework
 
 
Q