0
我想记录两个现有系统之间的通信,今天是非常糟糕的指定。我想知道是否有任何标准或最佳实践来记录我可以使用的网络通信协议? 有迹象表明,必须记录在案几种特殊类型和混合位顺序指定通信协议
的通信是非常简单,它是这样的(伪代码)
系统A-> B系统(发起通信)
short type; //Little endian
系统B->系统A
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