User Tools

Site Tools


Sidebar

Go Back

Refresh

You are not allowed to add pages

Direct Link

library:pan:pip

This is an old revision of the document!


Pan JS Interoperating Protocol (v1.00)

1. 概述

Pan Interoperating Protocal(缩写PIP),是PAN软件原生代码与内嵌浏览器中运行的Java script互传信息的协议。

2. 协议格式

PIP采用JSON字符串传送信息数据。 基本格式:

字段名 字段标识 数值类型 方向 说明
版本号 v number 双向 协议版本号数值,高版本的协议解析器必须支持低版本消息。例:“v”:10000,
消息序号 k number 双向 消息功能分类和识别
操作类型 t number 双向 操作类型:
0:无状态调用
操作接口 p string 双向 操作(调用)接口名称
操作参数 a object J→N 操作(调用)参数
操作响应 s number N→J 操作(调用)状态f返回
操作结果 r object N→J 操作(调用)结果返回

3. 分类格式定义

3.1 握手信息(1xx)

3.1.1 100

3.2 系统信息(2xx)

3.3 用户数据信息(3xx)

3.4 文件操作(4xx)

v

编码消息名称消息字段说明
400 ls b,p
410 save b,p,d
412 append b,p,d
420 read b,p
430 copy b,p,b2,p2
library/pan/pip.1711703073.txt.gz · Last modified: 2024/03/29 17:04 by lhaosen