Implementing Thrift Server in iOS - ios

How do you implement the server side in iOS using thrift? Using the thrift wiki, I was able to figure out how to write a client using thrift, but there seems to be no documentation in writing the server. Any example code would be greatly appreciated.

AFAIK You can't have the server in Objective C as only the client bindings are supported. You can however use the C/C++ server bindings. What is your use case? It seems odd to have the server on an iOS device.
Here is the link to the C++ usage docs.

Related

Using SOCKS proxy from BSD connect level

I am working with some network code on my client that connects to a server using BSD-level socket APIs (connect(), etc.). My program is written in Objective-C and platform is iPhone
I want to add SOCKS-proxy support to this, but I have not been able to find any way to do this at the BSD level. I have seen code that does this at the CFNetwork level, but I'd rather not rewrite all my networking code for this.
If anyone knows how I can add SOCKS client support at the BSD level, please let me know.
UPDATE: I am pretty sure I could implement the SOCKS protocol myself, but I'd like to avoid that if possible. Is there any 3rd party libraries that are recommended for this (hopefully open source)? They would have to be able to plug into my existing BSD-level socket code.

Send data to windows from iphone using Xamarin

I'm trying to write an IOS app using Xamarin that sends data to PC using TCP. I want it to do this with Cable or WiFi. I have been researching around the net for sometime now. But couldn't find any good tutorials. I'am aware that I should be using NSNet and Bonjour Windows SDK but I couldn't find anything more than that. Any suggestions or directions on how to achieve this would be very helpful. Thanks in advance.
If you are using Xamarin then the more preferred choice would be to write things using System.Net.Sockets namespace. This way you can reuse the code with other C# clients, including Android (if needed).
Plenty of examples on TcpClient/TcpServer.
https://msdn.microsoft.com/en-us/library/vstudio/system.net.sockets.tcpclient(v=vs.110).aspx

Most efficient way to integrate iOS push notifications?

I've heard of using Node.js w/symfony, using mamp/phpMyadmin, etc. Is there any easier way that involves less of a set up process such as a cocoa pod for server communication or something of the sort? Thanks!
You can implement a PHP script that uses a simple class like APNs PHP. It's really simple to use and you'll find full functioning sample code on google.
BUT you will have to write some code.

Can i call a web service from FireMonkey for iOS?

I'm new to iOS, have been developing in Delphi for many years.
I don't know FPC well and i find it very hard to figure out which classes are available on iOS.
is there any FireMonkey classes for calling web services and parsing xml?
Yes you can call a webservice :)
No it is not simple :(
You need to access the iOS framework directly...
The following code fragments will help...
First a pascal example of how to send/receive data via TCP
https://forums.embarcadero.com/thread.jspa?messageID=397346
Secondly, you will need to wrap the call using the relevant headers. See...
http://books.google.com.au/books?id=0nTYIL3-0yoC&pg=PT518&lpg=PT518&dq=beginning+ipad+development+webservices&source=bl&ots=cYniLvL8z2&sig=Ci6HskHgMvUeIrjyUbDecd7fBCQ&hl=en&ei=0_KdTpzBB4nOrQfwzM29CQ&sa=X&oi=book_result&ct=result&resnum=6&ved=0CEAQ6AEwBQ#v=onepage&q&f=true
It is a fair bit of work, but it can be done. Good luck!
You can also try to use RealThinClient (RTC) SDK to allow your Delphi XE2 FireMonkey iOS client to connect to a RTC SDK server. Not SOAP, but I've managed to send data back and forth between the two layers (just in case you do not have to use SOAP, but are merely looking for some way to connect an iOS client to a server)...

iOS Network Packet Analyzer app

I need to start developing an iOS application which will need to capture and analyze network traffic by connecting to certain devices. It will be replacing a java based desktop application which does the same thing using JPCAP: http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html
From what I can find out, JPCAP uses a C/C++ library to get the job done. The problem I am running into is not knowing how I can use JPCap in my iOS applications since it is java based even though it is based on C/C++ which Objective-C is a superset of.
If anyone can give me any ideas on how I can get this done or if there are any other API's
native to Objective-C, I would greatly appreciate it.
Thanks

Resources