| 
    JRTCSDK-iOS v2302.0
    
   视频客服 API 文档 
   | 
 
P2P会话类 更多...
#import <JRTCClient.h>
构造函数 | |
| (void) | - connect:port: | 
| 连接P2P   | |
| (bool) | - send: | 
| 发送消息  | |
| (void) | - close | 
| 关闭连接  | |
| (void) | - updatState: | 
| 更新P2P的状态   | |
| (JRTCP2PSessionState) | - getState | 
| 获取当前P2P连接的状态  | |
属性 | |
| int | pathId | 
| P2P通道ID  | |
| NSString *_Nonnull | host | 
| host  | |
| int | port | 
| 端口  | |
| NSString *_Nullable | otherHost | 
| 连接的host  | |
| int | otherPort | 
| 连接的端口  | |
P2P会话类
| - (void) connect: | (NSString *_Nonnull) | otherHost | |
| port: | (int) | otherPort | |
连接P2P
| otherHost | 远端host | 
| otherPort | 远端端口 | 
| - (void) updatState: | (JRTCP2PSessionState) | state | 
更新P2P的状态
| state | P2P的状态 |