I'd like to write a DLNA server in Cocoa for the Mac. Are there any libraries for speaking UPnP/DLNA in Objective-C or C? Failing that, where is the spec for DLNA so I can write my own?
How about this one:
Have a look at Platinum UPnP. It's written in C++, but is very portable.
I had a look at the Platinum UPnP Framework too and I found it quite cumbersome to work with since the API is C++ and (fortunately or unfortunately I am not sure) I am not a very experienced C++ developer.
I found this which seems to look promising and has a nicer Objective-C API: CyberLinkForObjC
Don't know about DLNA, but if you want to do port mapping with UPnP, you can try TCMPortMapper.
来源:https://stackoverflow.com/questions/2794561/writing-a-dlna-server-dms-in-cocoa-objective-c-c