From 41258f19fc243a9f776592a11eabaf19a68b8d04 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Thu, 8 Dec 2016 16:37:04 +0100 Subject: [PATCH] comments --- transport/internet/kcp/config.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/transport/internet/kcp/config.go b/transport/internet/kcp/config.go index dcb8b2c99..9d3cc08b3 100644 --- a/transport/internet/kcp/config.go +++ b/transport/internet/kcp/config.go @@ -7,6 +7,7 @@ import ( "v2ray.com/core/transport/internet" ) +// GetValue returns the value of MTU settings. func (v *MTU) GetValue() uint32 { if v == nil { return 1350 @@ -14,6 +15,7 @@ func (v *MTU) GetValue() uint32 { return v.Value } +// GetValue returns the value of TTI settings. func (v *TTI) GetValue() uint32 { if v == nil { return 50 @@ -21,6 +23,7 @@ func (v *TTI) GetValue() uint32 { return v.Value } +// GetValue returns the value of UplinkCapacity settings. func (v *UplinkCapacity) GetValue() uint32 { if v == nil { return 5 @@ -28,6 +31,7 @@ func (v *UplinkCapacity) GetValue() uint32 { return v.Value } +// GetValue returns the value of DownlinkCapacity settings. func (v *DownlinkCapacity) GetValue() uint32 { if v == nil { return 20 @@ -35,6 +39,7 @@ func (v *DownlinkCapacity) GetValue() uint32 { return v.Value } +// GetSize returns the size of WriterBuffer in bytes. func (v *WriteBuffer) GetSize() uint32 { if v == nil { return 2 * 1024 * 1024 @@ -42,6 +47,7 @@ func (v *WriteBuffer) GetSize() uint32 { return v.Size } +// GetSize returns the size of ReadBuffer in bytes. func (v *ReadBuffer) GetSize() uint32 { if v == nil { return 2 * 1024 * 1024 @@ -49,6 +55,7 @@ func (v *ReadBuffer) GetSize() uint32 { return v.Size } +// GetSecurity returns the security settings. func (v *Config) GetSecurity() (cipher.AEAD, error) { return NewSimpleAuthenticator(), nil }