toggle menu
Android-RTCLib-SDK
5.6.9
cn.rongcloud.rtc
switch theme
search in API
Android-RTCLib-SDK
/
cn.rongcloud.rtc.api.socks
/
RCRTCProxy
RCRTCProxy
public
final
class
RCRTCProxy
代理对象
Members
Constructors
RCRTCProxy
Link copied to clipboard
public
void
RCRTCProxy
(
)
默认构造函数
public
void
RCRTCProxy
(
String
host
,
int port
)
构造函数
public
void
RCRTCProxy
(
String
host
,
int port
,
String
userName
,
String
password
)
构造函数
Types
Proxy
Options
Link copied to clipboard
public
class
ProxyOptions
Properties
host
Link copied to clipboard
public
String
host
代理服务器 host
password
Link copied to clipboard
public
String
password
代理服务器认证方式-密码
port
Link copied to clipboard
public
int
port
代理服务器端口
proxy
Options
Link copied to clipboard
public
RCRTCProxy.ProxyOptions
proxyOptions
sock5 开关 option, 默认 http / udp sock5 proxy 都开启
user
Name
Link copied to clipboard
public
String
userName
代理服务器认证方式-用户名 userName 和 password 有一个为空,则为不认证的方式
Functions
get
Host
Link copied to clipboard
public
String
getHost
(
)
获取代理服务器 host
get
Password
Link copied to clipboard
public
String
getPassword
(
)
获取代理服务器认证密码
get
Port
Link copied to clipboard
public
int
getPort
(
)
获取代理服务器端口
get
Proxy
Options
Link copied to clipboard
public
RCRTCProxy.ProxyOptions
getProxyOptions
(
)
get
User
Name
Link copied to clipboard
public
String
getUserName
(
)
获取代理服务器认证用户名
is
Valid
Link copied to clipboard
public
Boolean
isValid
(
)
代理服务器信息合法性校验
set
Proxy
Options
Link copied to clipboard
public
void
setProxyOptions
(
RCRTCProxy.ProxyOptions
proxyOptions
)
设置代理 Options