mirror of https://github.com/cbeuw/Cloak
Improve comments
This commit is contained in:
parent
735975ef88
commit
11cfeb4fa3
|
|
@ -28,7 +28,7 @@ const (
|
||||||
E_METHOD_CHACHA20_POLY1305
|
E_METHOD_CHACHA20_POLY1305
|
||||||
)
|
)
|
||||||
|
|
||||||
// Obfuscator is responsible for the obfuscation and deobfuscation of frames
|
// Obfuscator is responsible for serialisation, obfuscation, and optional encryption of data frames.
|
||||||
type Obfuscator struct {
|
type Obfuscator struct {
|
||||||
// Used in Stream.Write. Add multiplexing headers, encrypt and add TLS header
|
// Used in Stream.Write. Add multiplexing headers, encrypt and add TLS header
|
||||||
Obfs Obfser
|
Obfs Obfser
|
||||||
|
|
|
||||||
|
|
@ -50,8 +50,9 @@ type SessionConfig struct {
|
||||||
InactivityTimeout time.Duration
|
InactivityTimeout time.Duration
|
||||||
}
|
}
|
||||||
|
|
||||||
// A Session represents a self-contained communication chain between local and remote. It manages its streams and send
|
// A Session represents a self-contained communication chain between local and remote. It manages its streams,
|
||||||
// and receive data using the connection pool filled with connections added to the session.
|
// controls serialisation and encryption of data sent and received using the supplied Obfuscator, and send and receive
|
||||||
|
// data through a manged connection pool filled with underlying connections added to it.
|
||||||
type Session struct {
|
type Session struct {
|
||||||
id uint32
|
id uint32
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue