Documentation 指定通信协议
我正试图记录两个现有系统之间的通信,这两个系统今天相当糟糕。我想知道是否有任何标准或最佳实践来记录我可以使用的网络通信协议? 有几种特殊类型必须记录在案,并且混合位顺序 通信非常简单,如下所示(伪代码) 系统A->系统B(启动通信) 系统B->系统ADocumentation 指定通信协议,documentation,communication,specifications,Documentation,Communication,Specifications,我正试图记录两个现有系统之间的通信,这两个系统今天相当糟糕。我想知道是否有任何标准或最佳实践来记录我可以使用的网络通信协议? 有几种特殊类型必须记录在案,并且混合位顺序 通信非常简单,如下所示(伪代码) 系统A->系统B(启动通信) 系统B->系统A short type; //Little endian short count; //Little endian //Start time short NoOfD
short type; //Little endian
short count; //Little endian
//Start time
short NoOfDaysSince1970; //Big endian
int noOfMillisecoundsToday; //Big ending
if(type==1)
for(int i=0;i<count;i++)
char[20] name;
else
for(int i=0;i<count;i++)
float value; //platform specific float, Little ending
for(int i=0;i<count;i++)
short flag; //Big ending
//Stop time
short noOfDaysSince1970; //Big ending
int noOfMillisecoundsToday; //Big ending
短型//小恩迪亚
短计数//小恩迪亚
//开始时间
1970年12月12日//大端
国际努夫米利什科恩斯托日//大结局
如果(类型==1)
对于(inti=0;i您可以查看
short type; //Little endian
short count; //Little endian
//Start time
short NoOfDaysSince1970; //Big endian
int noOfMillisecoundsToday; //Big ending
if(type==1)
for(int i=0;i<count;i++)
char[20] name;
else
for(int i=0;i<count;i++)
float value; //platform specific float, Little ending
for(int i=0;i<count;i++)
short flag; //Big ending
//Stop time
short noOfDaysSince1970; //Big ending
int noOfMillisecoundsToday; //Big ending