NSNetService deprecated

With NSNetService deprecated, how to write an IOS app to use Airplay as a server (receiver)? I can't find any details on how to do that using the Network framework which apparently replaces NSNetService.

NSNetService deprecated
 
 
Q