Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Documentation 指定通信协议_Documentation_Communication_Specifications - Fatal编程技术网

Documentation 指定通信协议

Documentation 指定通信协议,documentation,communication,specifications,Documentation,Communication,Specifications,我正试图记录两个现有系统之间的通信,这两个系统今天相当糟糕。我想知道是否有任何标准或最佳实践来记录我可以使用的网络通信协议? 有几种特殊类型必须记录在案,并且混合位顺序 通信非常简单,如下所示(伪代码) 系统A->系统B(启动通信) 系统B->系统A short type; //Little endian short count; //Little endian //Start time short NoOfD

我正试图记录两个现有系统之间的通信,这两个系统今天相当糟糕。我想知道是否有任何标准或最佳实践来记录我可以使用的网络通信协议? 有几种特殊类型必须记录在案,并且混合位顺序

通信非常简单,如下所示(伪代码)

系统A->系统B(启动通信)

系统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
短型//小恩迪亚
短计数//小恩迪亚
//开始时间
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