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:
http://code.google.com/p/upnpx/
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.
精彩评论