UPnP for iPhone [closed] - iphone

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
What free upnp library would you recommend for iPhone development? It has to support control point features and allow to serve files off from iPhone.

There is an open source project on Sourcefourge that will do this called CyberLink for C
It is written in C which integrates with Objective-C easily, but they provide Objective-C wrappers also. With it you can create UPnP applications easily with Objective-C on Mac OS X.
This is not to be confused with the Cyberlink DVD player software. They are two completely different things.

Consider this one: http://code.google.com/p/upnpx/

There is also MiniUPNP, http://miniupnp.free.fr/ which is open source. It is in C and written for POSIX, no idea if that works on the iphone.

This is another vote against CyberLink. Lots of bugs, basic functionality is missing, and way too slow on mobile devices (I think the main performance problem is that it is designed around DOM based XML parsing rather than SAX based).
I have heard a lot of people mention using the Platinum UPnP library, but so far I haven't found any Obj-C wrappers for it. I may just bite the bullet and do that soon.
Does anyone else know of a Platinum Objective-C wrapper?

I'm currently playing with the CyberLink, and it's loaded with bugs :(
I think that the Portable UPnP should be better, as it's actively maintained (although the last release was several years ago, the subversion repository is constantly updated).
As you asked this question almost year ago, I wonder how things turned out.

You can use ohNet. It contains both control point and device stacks, is available under a BSD license and has C++ and C APIs which are usable on iPhone.
(Disclaimer: I have contributed to this project)

Related

Is there a way to use STOMP for iOS [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I've search the web high and low and haven't really gotten anywhere. I'm trying to connect to a STOMP server to gain access to some data feeds. I've found some Objective C wrappers but the documentation is non existant and the pre ARC code generates enough alerts to make my head explode.
I'm fairly new to this area and would really appreciate a point in the right direction. Is there some iOS API that will handle this? Or does someone else know of some ARC code that will do the job?
If you are looking for a library that works over sockets, the objc-stomp library is still no-ARC, but there are some forks that are ARC:
https://github.com/lludo/objc-stomp from Ludovic Landry
https://github.com/hstrowd/objc-stomp from Harrison Strowd
If you are looking for one that works over websockets I have done a fork of the same library that works over websockets https://github.com/nmaletm/objc-stomp (but at the moment is not ARC).
But remember that if the problem is ARC vs no-ARC, you can disable it for some files doing this https://stackoverflow.com/a/6658549/2412686.
There are a new STOMP Kit that implements ARC and blocks.
Here -> STOMPKit
It's simple to use.
I ported StompKit to work over websocket for iOS as well. If you already have a server that can handle STOMP over websocket you can reuse it for your iOS client: WebsocketStompKit

Developing plugins for AutoCAD? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm thinking about starting to develop a plugin for AutoCAD, but I have absolutely no knowledge of the field. How does the plugin system work? What are the licensing terms? What programming platforms are available?
I'd really appreciate if somebody could give me a primer, or, even better, link to some resources for the total beginner I am.
Thanks!
Prior to AutoCAD 2014, there were three basic plugin types for AutoCAD:
AutoLisp
.Net
ObjectARX
AutoCAD 2014 also provides:
4. Javascript API. You can find a link to the documentation at the AutoCAD DevBlog.
AutoLisp can be used with DIESEL scripts/macros to accomplish and automate basically anything that a user can due through the UI, and a maybe a little bit more, but .Net and ObjectARX are much more powerful, allowing you to create your own entities and more advanced behavior.
ObjectARX is a C++ interface, and the .NET classes are actually wrappers to the ObjectARX interface. The .Net interface abstracts things fairly well, but you still have to be concerned with the threading and possibly some other things as you develop more complex applications.
As previously mentioned, Through the Interface is a great blog for .NET stuff.
For ObjectARX, there is a good introduction at ObjectARX & Dummies, but for the deeper material the Developers Forums are a good resource.
If you are developing anything for people other than yourself, you should also seriously consider getting a registered developer symbol to prevent conflicts among different plugins. You can do that at the Symbols Registration page on the AutoDesk website.
Depending on your resources, you may also want to join the AutoDesk Developers Network (ADN), which provides access to software technical support, and early and beta access to upcoming AutoDesk products and APIs.
What type of application are you thinking of writing? I've written a couple WPF user controls that communicate with AutoCad. To do so, I used the AutoCad .NET Developers Guide found here:
http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/index.html
This is a great blog to with some good video tutorials on it too.
This is a GREAT video if you just want to get started!

How to write a WOL app for iPhone? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Wake on LAN so cool, just want to write a iPhone app to WOL my PC, but have no idea to code, any one can point me the way?
If you've no experience of programming, then this is a very large first step. (More of a sheer vertical incline really.)
As such, you might want to take a step back and have a look a some basic (or indeed BASIC) programming tutorials. (Google is your friend.)
Alternatively, Apple has good online documentation regarding Objective C and the Cocoa (the language and framework that iPhone applications are written in.) A good place to start for this would be Apple's Introduction to The Objective-C Programming Language.
Basically you need to send a magic packed as described here, to do that you'll need basic programming knowledge and some knowledge on socket programming, here is a good book on the subject. There are numerous examples of that.
But in the end perhaps I could persuade you to purchase one of several iPhone applications that do exactly that, or grab the free one?
You'll need an understanding of bsd sockets as well as the user interface kit framework to put the necessary controls on the screen.
Or of course download an existing free app like this one which does it already, automatically detects your mac address, and also tells you whether your machines are on or off:
http://itunes.apple.com/us/app/wake/id396566137?mt=8
All the best for your projects.

How to start programming for the iPhone? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I come from a .Net C# background, what's the best way to learn how to program native applications for the iPhone?
Have a look at the Stanford course on iPhone development. It will really get you started.
Everyone has posted nice resources, but even if you already know the language you have to use, I just wanted to state it so that other people who probably don't know it, can see.
The language used for developing Apple sanctioned, native applications is Objective-C. Of course, you can mix in C and C++, but the SDK itself is in Objective-C, so you might want to learn that. It looks a bit scary at first to most people, usually those coming from higher level languages such as C#. The brackets and supposed 'verboseness' turns some people off. After a while though, it grows on you and you'll notice it's a very readable and self-documenting language.
I personally used the book titled Learning Objective-C which was perfect for me as someone who is already familiar with programming languages, preferably C-style languages, and wanted to learn about the main differences in that language. The other, longer and I imagine better reference of a book is the popular Programming in Objective-C 2.0. This book is longer and starts off assuming the reader has 0 programming experience, going over control structures, Object Oriented Programming basics, etc. I believe both books have cheaper and searchable PDF versions.
Have fun and I hope all goes well for you in this venture.
In case you didn't know it: You can also use C# to program on the iPhone through MonoTouch. And in fact MonoTouch does also compile down to native ;)
I found the Beginning iPhone 3 Development book to be a very good way to get started.

Best regex library for iphone sdk app? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm confused about the regex libraries that are available in the iPhone SDK. For example RegexLite looks like it needs a dynamic link, and from what I understand, this is not possible for the SDK on the iPhone.
I want a RegEx library for data validation... which one is the best available?
Just want to add here that iOS 4 now has NSRegularExpression.
John Englehart (regexkitlite developer) has posted to cocoa-dev saying that apps are being rejected for using it. http://lists.apple.com/archives/Cocoa-dev/2010/Jun/msg00564.html
(Apologies for this purporting to be an "answer", it would be a reply to Kendall Helmstetter Gelner if only I had 49 more reputation points).
RegexKitLite is available and works properly on iPhone either included from source as part of your Xcode project or by linking in a static library (which the ToS of the SDK do permit).
Using RegexKitLite requires dragging only a source and header file into your project, and works really well - it offers most of the features you'd want from a regex library. It's basically just a very thin wrapper around an underlying framework that's already there.
Make sure the source type for header and .m file is "sourcecode.c.objc" after you add them to the project (Use "Get Info" on a given source file and look at the "General" tab).
RegexKitLite uses the regular expression engine provided by the libicucore.A.dylib library. However Apple does not officially support linking directly against this library. See this post to the Xcode-users mailing list for details. However despite this there are many iPhone applications available on the App Store than make use of RegexKitLite, so it's unlikely (but not impossible) that Apple will reject your application for making use of it.
This is a nice lightweight alternative to RegexKitLite: https://github.com/bendytree/Objective-C-RegEx-Categories