TCGCustomTransChannelDelegate Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | TCGCustomTransChannel.h |
– onConnSuccessAtRemotePort:
required method
与后台连接成功
- (void)onConnSuccessAtRemotePort:(int)remotePortParameters
remotePort |
云端程序监听的UDP端口号 |
|---|
Discussion
与后台连接成功
Declared In
TCGCustomTransChannel.h
– onConnFailed:atRemotePort:
required method
与后台连接失败
- (void)onConnFailed:(NSError *)error atRemotePort:(int)remotePortParameters
error |
连接失败的原因,code:-1云端连接程序失败,10009 连接处理超时, |
|---|---|
remotePort |
云端程序监听的UDP端口号 |
Discussion
与后台连接失败
Declared In
TCGCustomTransChannel.h
– onClosedAtRemotePort:
required method
云端主动关闭了通道
- (void)onClosedAtRemotePort:(int)remotePortParameters
remotePort |
云端程序监听的UDP端口号 |
|---|
Discussion
云端主动关闭了通道
Declared In
TCGCustomTransChannel.h
– onReceiveData:fromRemotePort:
required method
接收来自云端程序的数据
- (void)onReceiveData:(NSData *)data fromRemotePort:(int)remotePortParameters
data |
云端发过来的数据 |
|---|---|
remotePort |
云端程序监听的UDP端口号 |
Discussion
接收来自云端程序的数据
Declared In
TCGCustomTransChannel.h