It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
i was wondering if there is any way i can set up a server in Objective C that sits on a server box.
From what some people have told me the form post action to HTML pages for information or .ASPX Web Services can be slower then an actual server would be.
How could i set up a server program written in objective c that i would send a message to and get a response back.
For example i send the server the string:
Add(2,8);
And i do some string manipulation work on the server to eventually add the two and send back a response of:
10
I know this sounds obscure and the need for this would be unique, but I'm just trying to find a data transfer protocol that responds faster then your everyday HTML Post.
This would help me with games for iPhone that have a much more chatter then slow NSURLConnections would allow.
It sounds like you are mixed up on a lot of things. You don't POST forms to HTML, and ASP.NET web services do run on actual servers.
If I'm understanding you correctly, what you want to avoid is none of that stuff, but rather the overhead with HTTP? For games, it's common to use UDP, or if you need a more reliable connection, TCP.
What language you implement the server part of your game in is irrelevant - it doesn't have to be Objective-C.
Sending strings that the server has to parse is a bit silly if you're going for efficiency - you should define a packet structure instead of parsing text. There are some GameKit examples in Apple's developer library that take that approach, you should review them to see how the packets are constructed.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Needed some advice as i am writing my first iOS application,
1. what is the best way(simplest) to link an app to a database and does the database have to be SQLite (the databse will be external ie. linked via the internet)? i have used mySQL before in MAMP,
I have read up on other post and they suggest complicated methods like via JSON etc, please provide a simple way and a book/guide/web site that could teach me your suggested method would be much appreciated too :)
SQLite is one of them.
However if your requirement is to share the database, you can go with mySQL or even Oracle etc.
JSON, xml are the tools that will help you to make a client server application.
Useful link:
http://jainmarket.blogspot.in/2009/05/iphone-sdk-tutorial-reading-data-from.html
SQLite is generally used for a local database (aka, on the device itself) through CoreData. But it seems like you have a remote MySQL database you want to connect to.
You should build some API that your iOS app talks to to get data from a database. Typically this is done over http which generates JSON in whatever server language of your choice (eg - python, ruby, php, etc).
For the iOS side, you'll probably use Apple's builtin features: NSURLConnection and NSJSONSerialization.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I need to build a web application that sends a free SMS to its users. Now the problem is That I have no clue as to where do I get a free API to get this to work and how? Can someone help?
I believe most of the 'free' APIs make their money with ads embedded in your messages or sent along as a separate message. Additionally, the messages will likely come from a shared short code. If you're okay with those limitations, as #anirvan commented, google is your friend - here's just one example. Unlikely that you'll get wide international support (if that's something you need).
You could also try the email to SMS route, as many carriers will accept email to a unique address and forward that to the user. Again, google can help in finding those mappings. Note that the messages may not be in a desirable format, and if you do this with any volume, you may incur the wrath of the carriers.
There's also low cost APIs - certainly not free - but perhaps worth considering depending on your use case. Here are a few:
Nexmo
Twilio
Tropo
If cost is your main concern, I think you'll find Nexmo has the most competitive prices.
Disclosure: I'm a developer evangelist for Nexmo.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
How can we implement iPad application that retrieve or store data from remote data source(Mysql). Are there any classes associate to achieve our requirement
If you are retrieving a remote database, then I would recommend creating a wrapper for your DB using a server-side language like PHP to serve the request from your application, just like it serves an AJAX client request.
In your iOS, you have to create a NSURL instance and request your PHP application for data. Now, for returning the data you can use your own format or standards like JSON or XML. There are numerous public JSON/XML parsers available for iOS!
How do you want to handle the delay of using a radio connection? You might want to consider using a json connection and a server application instead
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
as the topic header shows my question is about Coding an online chess by VB.net.
I coded the chess game with all rules , now I designed a login form for it, but I don't know how to connect to a Database and send query , to check the User and pass.
I searched about connecting to a DB and I found something. but i didn't found anything about sending query.
I need a code that contains connecting to a DB and sending query for example about checking username and password to DB.
thanks.
Well, the simplest answer is to use what's called ADO.NET. It's basically a set of classes within the .NET Framework which are used to access a database. Depending on the database you use, there may be a built-in driver (MS SQL, Access, etc.) or you may need to use a 3rd party one (MySQL, PostgreSQL, etc.).
Here are a couple of examples. There are many more.
You can also use LINQ to SQL, which internally uses ADO.NET but presents the data access to the developer is a more fluent way. Or take it another step and use Entity Framework. Etc.
Essentially the question itself is very broad. There are a number of ways you can access a database. But these are the places to get started. If/When you run into specific issues with code not working the way you expect, we'll be happy to help.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I would like to setup a web service, to be accessed via a mobile device. The main purpose of the server is data storage. I would like to know some of your opinions on the advantages\disadvantages between RoR and WCF for building the server-side of the web service.
I think you're looking at this the wrong way. What does the web service do?
The fact that it's a web service a mobile device talks to is itself not a big deal. Lots of stuff exists to do that. WCF is pretty good at it. I don't know anything about RoR but it probably is too.
So once the mobile device makes a request, what's going to happen on the server? Who is building it, and what languages/frameworks do they already know? What if any infrastructure is already in place?
If you can answer those questions, I think the answer to your question will become more apparent. :)