Struct synac::Session [] [src]

pub struct Session { /* fields omitted */ }

A struct that holds the connection to synac.

Methods

impl Session
[src]

[src]

Create a synac session that verifies the public key against a hash.

[src]

Create a synac session with a custom SSL callback.

[src]

Returns inner connection

[src]

Makes inner stream non-blocking

[src]

Sends the login packet with specific password. Read the result with read. Warning: Strongly disencouraged. Use tokens instead, when possible.

[src]

Sends the login packet with specific token. Read the result with read.

[src]

Transmit a packet over the connection

[src]

Read a packet from the connection