Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NegotiateVersionInbound ¶
func NegotiateVersionInbound(conn net.Conn) (*connection.Connection, error)
NegotiateVersionInbound takes in a connection and performs version negotiation as if that connection was a client. Returns a ricochet connection if successful error otherwise.
func NegotiateVersionOutbound ¶
func NegotiateVersionOutbound(conn net.Conn, remoteHostname string) (*connection.Connection, error)
NegotiateVersionOutbound takes an open network connection and executes the ricochet version negotiation procedure.
func Open ¶
func Open(acn connectivity.ACN, remoteHostname string) (*connection.Connection, error)
Open establishes a protocol session on an established net.conn, and returns a new OpenConnection instance representing this connection. On error, the connection will be closed. This function blocks until version negotiation has completed. The application should call Process() on the returned OpenConnection to continue handling protocol messages.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
wire
|
|
auth
Package Protocol_Data_AuthHiddenService is a generated protocol buffer package.
|
Package Protocol_Data_AuthHiddenService is a generated protocol buffer package. |
auth/3edh
Package Protocol_Data_Auth_TripleEDH is a generated protocol buffer package.
|
Package Protocol_Data_Auth_TripleEDH is a generated protocol buffer package. |
chat
Package Protocol_Data_Chat is a generated protocol buffer package.
|
Package Protocol_Data_Chat is a generated protocol buffer package. |
contact
Package Protocol_Data_ContactRequest is a generated protocol buffer package.
|
Package Protocol_Data_ContactRequest is a generated protocol buffer package. |
control
Package Protocol_Data_Control is a generated protocol buffer package.
|
Package Protocol_Data_Control is a generated protocol buffer package. |