Can someone give me simple code to help with creating an HTTP server for the iPhone. Something simple with much documentation would be appreciated. Anything you have please share.
相关问题
- Angular RxJS mergeMap types
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- gactions CLI crashes on Windows when uploading goo
相关文章
- C#使用http访问网络,有办法用指定网卡访问网络嘛?
- Windows - Android SDK manager not listing any plat
- Could I create “Call” button in HTML 5 IPhone appl
- Unable to process app at this time due to a genera
- RMI Threads prevent JVM from exiting after main()
- Is a unicode user agent legal inside an HTTP heade
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
If you're unfamiliar with network programming your best bet is to first read Beej's Guide to Network Programming and then read the HTTP 1.1 spec before you look at source code (as you should have an understanding of the protocol before you start looking at implementations).
A simple Google search turned up cocoahttpserver and iSpit. Otherwise, you could download Apache and look at its source code, but that's not exactly a simple implementation.
There are sample codes from Apple and open source community such as cocoahttpserver TouchHTTPD.
Here's a summary blog
Another open-source HTTP server for iPhone is the lightweight GCDWebServer which is built on top of Grand Central Dispatch. It's only a few source code files and offers a simple and extensible API.