plebble
us::gov::id::peer_t::handshake_t Class Reference

#include <peer_t.h>

Collaboration diagram for us::gov::id::peer_t::handshake_t:

Public Types

typedef crypto::ec::sigmsg_hasher_t sigmsg_hasher_t
 
typedef sigmsg_hasher_t::value_type sigmsg_hash_t
 

Public Member Functions

 handshake_t (role_t role, uint16_t pport)
 
 handshake_t ()
 
role_t parse_role () const
 
uint16_t parse_version_fingerprint () const
 
uint16_t parse_pport () const
 
uint16_t parse_pin () const
 
void dump (const string &pfx, ostream &os) const
 

Public Attributes

sigmsg_hash_t msg
 

Package Functions

 handshake_t (role_t role, uint16_t pport)
 
 handshake_t ()
 
void encode (uint16_t v, int offset)
 
uint16_t parse_version_fingerprint ()
 
uint16_t parse_pport ()
 
role_t parse_role ()
 

Package Attributes

sha256.hash_t msg =new sha256.hash_t()
 

Member Typedef Documentation

◆ sigmsg_hash_t

◆ sigmsg_hasher_t

Constructor & Destructor Documentation

◆ handshake_t() [1/4]

◆ handshake_t() [2/4]

◆ handshake_t() [3/4]

us.gov.id.peer_t.handshake_t.handshake_t ( role_t  role,
uint16_t  pport 
)
inlinepackage

◆ handshake_t() [4/4]

us.gov.id.peer_t.handshake_t.handshake_t ( )
inlinepackage

Member Function Documentation

◆ dump()

void c::handshake_t::dump ( const string &  pfx,
ostream &  os 
) const

◆ encode()

void us.gov.id.peer_t.handshake_t.encode ( uint16_t  v,
int  offset 
)
inlinepackage

References msg.

Referenced by handshake_t().

Here is the caller graph for this function:

◆ parse_pin()

uint16_t c::handshake_t::parse_pin ( ) const

References parse_pport().

Referenced by dump().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_pport() [1/2]

uint16_t us.gov.id.peer_t.handshake_t.parse_pport ( )
inlinepackage

References msg.

◆ parse_pport() [2/2]

uint16_t c::handshake_t::parse_pport ( ) const

References msg.

Referenced by dump(), handshake_t(), parse_pin(), us::gov::id::peer_t::process_challenge_response(), and us::gov::id::peer_t::process_peer_challenge().

Here is the caller graph for this function:

◆ parse_role() [1/2]

role_t us.gov.id.peer_t.handshake_t.parse_role ( )
inlinepackage

References us.gov.id.peer_t.role_t.from_byte(), and msg.

Here is the call graph for this function:

◆ parse_role() [2/2]

c::role_t c::handshake_t::parse_role ( ) const

◆ parse_version_fingerprint() [1/2]

uint16_t us.gov.id.peer_t.handshake_t.parse_version_fingerprint ( )
inlinepackage

References msg.

◆ parse_version_fingerprint() [2/2]

uint16_t c::handshake_t::parse_version_fingerprint ( ) const

References msg.

Referenced by dump(), and handshake_t().

Here is the caller graph for this function:

Member Data Documentation

◆ msg [1/2]

◆ msg [2/2]

sha256.hash_t us.gov.id.peer_t.handshake_t.msg =new sha256.hash_t()
package

The documentation for this class was generated from the following files: