如何在iOS中编写小型(套接字)服务器 [英] How to write a small (socket) server in iOS

查看:107
本文介绍了如何在iOS中编写小型(套接字)服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一些官方的iOS应用程序中看到了这一点,所以我知道这是可能的和允许的。

I saw this in some official iOS apps, so I know it's possible and permitted.

我想在iOS中编写一个小型套接字服务器,我将为台式机编写一些其他应用程序,可以连接并读取数据。

I want to write a small socket server in iOS that some other application, that I will write for a desktop machine, can connect to and read data from.

任何人都做过这样的事情并且可以帮我提供一些线索或知道一个好的起点吗?

Anyone did something like this and can help me with some clues or knows a good starting point ?

推荐答案

你应该阅读流编程指南 WiTap 示例以及Apple的Doc中的许多其他编程指南,示例和文档,您将在那里找到所有内容(包括详细说明和代码)

You should read the Stream Programming Guide, the WiTap sample, and many other Programming Guides, Samples and Documentation in Apple's Doc, you will find everything there (including detailed explanations and code)

如果您只是转到iOS SDK文档的主页并进入网络与互联网主题,那么您也拥有大量资源,包括 Network&am磷;互联网起点指南等等。

If you simply go to the home page of iOS SDK documentation and go in the "Networking & Internet Topics" you have plenty of resources too, including the Network & Internet Starting Point guide and much more.

这篇关于如何在iOS中编写小型(套接字)服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆