Entry Format Type
Two types of Entries exist: Type 1 Entries for Services and Type 2 Entries for Eventgroups.


Type field of the Entry:
- Layout of Type 1 Entries (Entries for Service):
0x00:FindService
0x01:OfferService和StopOfferService - Layout of Type 2 Entries ( Entries for Eventgroups)
0x06:SubscribeEventgroup和StopSubscribeEventgroup
0x07:SubscribeEventgroupAck和SubscribeEventgroupNack
Entry Format
- If the number of options is set to zero, the option run is considered empty.
如果option的數(shù)量設置為零,則option run被視為空。 - For empty runs the Index shall be set to zero.
如果option run為空,index也應設置為零。 - Implementations shall accept and process incoming SD messages with option run length set to zero and option index not set to zero.
實施應接受并處理option run length設置為0且option index未設置為0的SD傳入消息。
Index 1st options
the index of the first option of the first option run of this entry in the option array
option array中的第一個 option run中的第一個option的索引
Index 2st options
the index of the first option of the second option run of this entry in the option array
option array中的第二個option run中的第一個option的索引
# of opt 1
the “Number of Option 1” shall carry the number of options the first option run uses
“Number of Option 1”應包含first option run使用的選項的數(shù)量
#of opt 2
the “Number of Option 2” shall carry the number of options the second option run uses
“Number of Option 2”應包含second option run使用的選項的數(shù)量
Service ID and Instance ID
- Service ID 和 instance ID字段應具有固定的16位大小。
Servcie或者Eventgroups的Service ID使用參數(shù)SdServerServiceID和SdClientServiceID進行靜態(tài)配置,具體取決于服務器或客戶端entry。
Service或者Eventgroups Service的Instance ID使用參數(shù)SdServerServiceInstanceID和SdClientServiceInstanceID進行靜態(tài)配置,具體取決于服務器還是客戶端entry。 - If not a single but all instances are addressed, the Instance ID field of the Type 1 Entry format layout shall be set to 0xFFFF
對于Entries for Service,如果不是單個實例而是所有實例都被尋址,instance ID字段應設置為0xFFFF。
Major version
- The Major Version field shall have a fixed size of 8 bits.
Major Version字段應具有固定的8位大小。 - The Major Version field shall carry the SdServerServiceMajorVersion and SdClientServiceMajorVersion, depending on being a server or client entry.
Major Version字段應包含SdServerServiceMajorVersion和SdClientServiceMajorVersion,具體取決于服務器或客戶端entry。
Minor Version
- The Minor Version field of the Type 1 Entry format layout shall have a fixed size of 32 bits.
Type類型1條目格式布局的Minor Version應具有固定的32位大小。 - The Minor Version field of the Type 1 Entry format layout shall carry the SdServerServiceMinorVersion and SdClientServiceMinorVersion.
Type類型1條目格式布局的Minor Version字段應攜帶SdServerServiceMinorVersion和SdClientServiceMinorVersion。
TTL
- The TTL field shall have a fixed size of 24 bits.
TTL字段應具有固定的24位大小。 - The TTL defines the lifetime of the entry.
TTL字段定義條目的生存期。 - The TTL field defines the lifetime of the entry in seconds configured using the parameter SdServerTimerTTL and SdClientTimerTTL, except for Stop- or Nack-Entries, which use a TTL of 0.
TTL字段使用參數(shù)SdServerTimerTTL和SdClientTimerTTL以秒為單位定義生命周期,除了TTL本身為0的Stop-或Nack-Entry外。
Reserved Field
- The Reserved field shall have a fixed size of 16 bits.
保留字段應具有固定的16位大小。 - The Reserved field, which follows the TTL field shall be statically set to 0x0000.
TTL字段后面的保留字段應靜態(tài)設置為0x0000。
Eventgroup ID
- The Eventgroup ID field shall have a fixed size of 16 bits.
Eventgroup ID字段應具有固定的16位大小。 - The Eventgroup ID field shall carry the ID of an Eventgroup, configured using the parameter SdConsumedEventGroupID.
Eventgroup ID字段應攜帶使用參數(shù)SdConsumedEventGroupID配置的事件組的ID。 - An eventgroup shall be identi?ed using the Eventgroup-ID.
一個事件組需要使用Eventgroup ID。 - Different eventgroups of a service shall have different Eventgroup-IDs.
服務的不同Eventgroup應具有不同的 Eventgroup ID。 - An event shall be part of zero to many eventgroups and an eventgroup shall contain zero to many events. A ?eld shall be part of zero to – many eventgroups and an eventgroup can contain zero to many ?elds.
一個Event應該是許多Eventgroup的一部分,一個Eventgroup應包含許多Event。一個Field應該是許多Eventgroup的一部分,而Eventgroup可以包含許多Field。 - Currently empty eventgroups are not used and events as well as ?elds are mapped to at least one eventgroup.
目前沒有使用空的Eventgroups ,Event以及Field被映射到至少一個Eventgroup 。
