Click or drag to resize

PeerTransferPayload Class

Represents the peer transfer payload
Inheritance Hierarchy
SystemObject
  SanteDB.DisconnectedClient.PeerToPeerPeerTransferPayload

Namespace:  SanteDB.DisconnectedClient.PeerToPeer
Assembly:  SanteDB.DisconnectedClient.Core (in SanteDB.DisconnectedClient.Core.dll) Version: 2.2.1
Syntax
public class PeerTransferPayload

The PeerTransferPayload type exposes the following members.

Constructors
  NameDescription
Public methodPeerTransferPayload
Creates a new peer transfer payload
Top
Properties
  NameDescription
Public propertyEncoding
Encrypt the payload
Public propertyPayload
Gets the payload of the object
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberRead
Read from the stream
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWrite
Write this payload to the specified stream
Top
Fields
  NameDescription
Public fieldStatic memberMAGIC_HEADER
Header indicates the magic header for the payload
Public fieldStatic memberVERSION_ID
Version identifier
Top
Extension Methods
  NameDescription
Public Extension MethodConvertTReturn
The purpose of this method is to convert object me to TReturn. Why? Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast so we have to copy.
(Defined by ExtensionMethods.)
Public Extension MethodGetInstanceOfTDomain
Gets an instance of TDomain from me
(Defined by ModelExtensions.)
Top
Remarks

The P2P services in SanteDB are usually sent via limited bandwidth services like IrDA, Bluetooth or NFC. This necessitates the use of a binary based protocol

The protocol for the transfer is as follows:

  • A 5 byte header = SDP2P
  • A 1 byte version
  • Encoding flags which indicate the compression of the stream
  • A 4 byte usigned integer with length of the payload
  • The JOSE payload data itself
See Also