InterfaceTest is an iPhone project that demonstrates some of AsyncSocket's interface abilities.
Most machines have multiple network interfaces. For example:
- Ethernet
- WiFi
- 3G (cellular)
- Bluetooth
- Loopback (local machine only)
Which leads to the question:
If you are setting up sockets, which interface will your socket be running on?
By default, if you don't specify an inteface, then the following rules generally apply:
- Server sockets (listening/accepting) will accept incoming connections on any inteface.
- Client sockets (connecting) will make outgoing connections on the primary interface.
The primary interface on iPhone is WiFi.
The primary interface on Mac is configurable via system preferences.
But you can specify a particular interface using AsyncSocket. There are various examples of when one might want to do this.
- You're trying to make a bluetooth connection.
- Your iPhone app only supports WiFi, so you need to ensure your socket is only using the WiFi interface.
- You want to create a local-only server socket on Mac for inter-process communication. You want to ensure only processes running on the local device can connect to your server.
The IntefaceTest project demonstrates specifying a particular interface to use for an outgoing connection to google.com. You can force either the WiFi interface or the 3G/cellular interface.
没有合适的资源?快使用搜索试试~ 我知道了~
AsyncSocket客服端服务端Demo
共282个文件
m:52个
ds_store:45个
h:35个
需积分: 9 38 下载量 29 浏览量
2013-11-04
13:07:08
上传
评论
收藏 757KB ZIP 举报
温馨提示
AsyncSocket客服端服务端Demo资源,里面有接口测试,不是完整的应用程序,需要根据自身需要修改
资源推荐
资源详情
资源评论
收起资源包目录
AsyncSocket客服端服务端Demo (282个子文件)
.DS_Store 15KB
.DS_Store 15KB
.DS_Store 12KB
.DS_Store 12KB
.DS_Store 12KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.gitignore 52B
GCDAsyncSocket.h 47KB
GCDAsyncUdpSocket.h 41KB
AsyncSocket.h 29KB
DDLog.h 21KB
AsyncUdpSocket.h 14KB
DDFileLogger.h 12KB
DDTTYLogger.h 6KB
DispatchQueueLogFormatter.h 4KB
DDAbstractDatabaseLogger.h 4KB
ContextFilterLogFormatter.h 2KB
DDASLLogger.h 1KB
AppDelegate.h 482B
EchoServerAppDelegate.h 458B
AppDelegate.h 435B
BonjourClientAppDelegate.h 433B
AppDelegate.h 410B
AppDelegate.h 405B
InterfaceTestAppDelegate.h 402B
BonjourServerAppDelegate.h 344B
ConnectTestAppDelegate.h 333B
SimpleHTTPClientAppDelegate.h 332B
AppController.h 294B
SimpleHTTPClientAppDelegate.h 272B
ConnectTestAppDelegate.h 267B
InterfaceTestViewController.h 258B
ViewController.h 246B
AppDelegate.h 228B
AppDelegate.h 228B
ViewController.h 228B
AppDelegate.h 228B
ViewController.h 217B
ConnectTestViewController.h 153B
AppDelegate.h 137B
SimpleHTTPClientViewController.h 102B
TestPreBuffer.h 94B
Documentation.html 2KB
Documentation.html 2KB
GCDAsyncSocket.m 191KB
GCDAsyncUdpSocket.m 126KB
AsyncSocket.m 121KB
AsyncUdpSocket.m 63KB
DDTTYLogger.m 46KB
DDFileLogger.m 36KB
DDLog.m 30KB
DDAbstractDatabaseLogger.m 15KB
SimpleHTTPClientAppDelegate.m 10KB
SimpleHTTPClientAppDelegate.m 9KB
ViewController.m 8KB
ViewController.m 8KB
ConnectTestAppDelegate.m 7KB
EchoServerAppDelegate.m 7KB
TestPreBuffer.m 6KB
AppController.m 6KB
InterfaceTestAppDelegate.m 6KB
共 282 条
- 1
- 2
- 3
资源评论
孩子M001
- 粉丝: 0
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功