文档
测试

端口映射设置

POST
topicName = PortMapper

请求参数

参数名
类型
描述
必填
data
json
必填
operateType
int
0: 断开映射 1:开启映射
必填
mapParam
json
映射参数,operateType为1时需要填写
可选
serverIP
string
服务器IP
必填
serverPort
int
服务器连接用端口
必填
loginName
string
登录名
必填
passwd
string
登录密码
必填
remotePort
int
映射的远端端口
必填
localPort
int
被映射的本地端口
必填

响应参数

参数名
类型
描述
必填
success
int
执行结果,0为成功,其他为失败
必填
status
int
当前映射状态 ,0为未映射,1为已映射
必填
remotePort
int
远端的映射端口
必填