问题
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?
回答1:
How about this one:
http://code.google.com/p/upnpx/
回答2:
Have a look at Platinum UPnP. It's written in C++, but is very portable.
回答3:
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
回答4:
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