我希望能够修改 iPhone tcp/ip 堆栈以通过串行或更好的 USB 或 Firewire 附件端口路由数据包...
我正在研究的应用程序无法使用 WiFi、3G 或蓝牙……可以编写自定义应用程序以使用通过附件端口可用的串行端口,但支持需要网络访问的通用应用程序会很好.
我还没有找到很多与此相关的信息,有人有想法吗?
About the only way this could work would be to Jailbreak the device, and do some quite low level hacking. OS X supports NKEs (Network Kernel Extensions) that would allow you to introduce a new network interface. I don't know if the iPhone OS has these (as there's obviously not much information on it - it's supposed to be a black box). Even if it did, you'd have to make your KE lie and claim to be e.g. the Wifi device, as many applications will probe for network availability by searching for the Wifi interface.
Basically, I think this is an untenable idea. You can use the External Accessory APIs to allow your custom apps to use your dongle as a network service provider, but you can't use it to provide a new network interface. If you want this kind of open, extensible platform, then the iPhone is not really the right platform.