JRTCSDK-iOS v2.0
API文档
|
构造函数 | |
(void) | - connect:port: |
连接P2P 更多... | |
(bool) | - send: |
发送消息 | |
(void) | - close |
关闭连接 | |
(void) | - updatState: |
更新P2P的状态 更多... | |
(JRTCP2PSessionState) | - getState |
获取当前P2P连接的状态 | |
属性 | |
int | pathId |
P2P通道Id | |
NSString *_Nonnull | host |
host | |
int | port |
端口 | |
- (void) connect: | (NSString *_Nonnull) | otherHost | |
port: | (int) | otherPort | |
连接P2P
otherHost | 远端host |
otherPort | 远端端口 |
- (void) updatState: | (JRTCP2PSessionState) | state |
更新P2P的状态
state | P2P的状态 |