Monday, November 1, 2010

Protocol Buffers

'Implementation continues of the binary protocol, based on Google''s Protocol Buffer technology .  This will allow for a much more elegant and efficient transfer of data both between peers, as well as between the client and server.



The basic unit of the Fractus protocol is the "Fractus Packet," which consists of:

  • The length of the data following as a four byte NBO integer
  • A FractusMessage, encrypted unless it''s a public key message (for ECDH purposes)

The Fractus Message consists of:

  • A two byte NBO short descriptor, which indicates its type (like "Instant Message" or "Add Friend Request")
  • A serialized Protocol Buffer Message (created by Google''s protoc-generated Java code.)
'

No comments:

Post a Comment