iPhone插座程序 [英] iPhone socket program
本文介绍了iPhone插座程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想创建一个非常简单的 iPhone 程序,它将在连接到局域网的设备上打开一个 telnet 会话并发送一系列按键.我见过的大多数套接字代码对于我想要做的事情来说都是压倒性的,而且是过度杀伤:
I want to create an extremely simple iPhone program that will open a telnet session on a lan-connected device and send a sequence of keystrokes. Most of the code I've seen for sockets is overwhelming and vast overkill for what I want to do:
- 打开 telnet 套接字到 IP 地址
- 发送 ASCII 击键
我可以使用任何简单代码示例吗?
Any simple code examples out there I can play with?
推荐答案
我建议你查看 Asyncsocket 项目:
它使套接字编程变得非常简单;不用自己搞乱线程,事情会异步发生而不会大惊小怪.
It makes socket programming really easy; no messing with threads yourself and things happen asynchronously without much fuss.
我认为有一个带有客户端/服务器的示例项目可以帮助您入门.
I think there is a sample project with a client/server to get you started.
这篇关于iPhone插座程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文