Changes between Version 3 and Version 4 of Proto/cModules/b0GNRS/a0NetworkProtocol2
- Timestamp:
- Sep 25, 2015, 3:49:12 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Proto/cModules/b0GNRS/a0NetworkProtocol2
v3 v4 79 79 * '''Requestor Address''' - Network Address of the original sender (originator) of the request message. 80 80 * '''Requestor Payload''' - Message-specific request payload, including options. See message types below. 81 * '''Global Options''' - A set of global options for the query , currently limited to the ones listed below.81 * '''Global Options''' - A set of global options for the query. 82 82 83 83 === Options === 84 84 85 There are two types of options . Global options which are appended to the message as whole (e.g. Recursive Option). Local options are associated with each bindingsthat is stored in the GNRS (e.g. Expiration Option). Both types are encoded in the same format.85 There are two types of options - Global and Local. Global options which are appended to the message as whole (e.g. Recursive Option). Local options are associated with each binding that is stored in the GNRS (e.g. Expiration Option). Both types are encoded in the same format. 86 86 87 87 Options are encoded as a (Type, Length, Value) 3-tuple. Unsupported options can be ignored by the receiving host, but should be preserved when stored or forwarded so that other hosts have the opportunity to interpret them. The block of options are located either before or after the "payload" of the message. … … 112 112 === Lookup Request === 113 113 114 The lookup request is used to retrieve the binding(s) for a GUID. It includes the query GUID and optional parameter 'type'. If a type is specified, only that particular binding is fetched. Multiple types can me included in a sinlge lookup request. If no type is specified, all the bindings for that GUID are returned.114 The lookup request is used to retrieve the binding(s) for a GUID. It includes the query GUID and optional parameter 'type'. If a type is specified, only that particular binding is fetched. Multiple types can be included in a single lookup request. If no type is specified, all the bindings for that GUID are returned. 115 115 Its' format is as follows: 116 116 … … 182 182 * '''Number of Bindings''' - Number of bindings being inserted/updated. 183 183 * '''Entry''' - Binding of a type 184 * '''Type''' - Type of the binding 185 * '''Number of values''' - Number of values of the type 184 * '''Type''' - Type of the binding being inserted/updated 185 * '''Number of values''' - Number of values of the type. 186 186 * '''Length of values''' - Length of values. 187 187 * '''Length of options''' - Length of local options.