gmapi/readme.md
2026-04-21 09:19:16 +08:00

9 lines
541 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 接口
功能:将符合 ASN1 的请求包发送给待测服务器并接收响应。实现类自行解决连接的创建和管理。ip 和端在配置文件中配置。
TCP send/recv 协议2字节len + 8字节0 + 2字节type + asn1Req
其中 len 为后续所有字节的长度
其中 type 为 asn1Req 按 asn1 解析后 seq 中第二个字段。seq 中第一个字段是 int 类型的 version
com.sunyard.GmApi
返回byte[] 响应包recv 包的 asn1Resp 字段
接口原型public static byte[] senMsg(byte[] asn1Req)