Commit Graph

77 Commits (2020bbe60601cd87943ed9d6b5be68ae252a5ba1)

Author SHA1 Message Date
Darien Raymond 60ee80ca1b
don't write empty payload
6 years ago
Darien Raymond 475ffc8196
supress warning on ecryption packets
6 years ago
Darien Raymond b4f3106ad6
check msg size in writepacket
6 years ago
Darien Raymond 3df32aabbc
check empty payload
6 years ago
Darien Raymond 2e11653694
remove BufferedReader.Direct
6 years ago
Darien Raymond b769e0cc5f
only create bufferedreader when necessary
6 years ago
Darien Raymond fdb3a7b57d
remove use of buf.NewSize()
6 years ago
Darien Raymond 6a06908456
optimize encryption read/write operations
6 years ago
Darien Raymond d615adab36
optimize padding reading
6 years ago
Darien Raymond 7efa7ee632
prepare to remove constructor of AuthenticationReader
6 years ago
Darien Raymond 8a879deac1
max padding len as variable
6 years ago
Darien Raymond 69774c99dc
fix padding value
6 years ago
Darien Raymond f54a8735ab
global padding in vmess protocol
6 years ago
Darien Raymond 148a7d064d
simplify buf.BufferedReader
7 years ago
Darien Raymond 3997d13b97
rename Slice and Slice from to Resize and Advance
7 years ago
Darien Raymond 66ed1bab2a
simplify BytesGenerator
7 years ago
Darien Raymond 9d7f43a299
fix lint errors
7 years ago
Darien Raymond 4b45174650
fix handling of empty buffer
7 years ago
Darien Raymond 9f198d7e3d
fix lint errors
7 years ago
Darien Raymond 7bafd7a1ab
migrate int to int32
7 years ago
Darien Raymond c5bd23105e
change uint32 to int32
7 years ago
Darien Raymond 08dab81eb2
migrate int to int32
7 years ago
Darien Raymond 4de3f1adc1
change ReadFullFrom to take int32 size
7 years ago
Darien Raymond 5af3580bcf
correct magic number
7 years ago
Darien Raymond 3d919a6a93
optimize auth reader
7 years ago
Darien Raymond 8d0a74b3fa
refine auth writer
7 years ago
Darien Raymond fc7da93d06
less cap
7 years ago
Darien Raymond 1cbfeea0cd
simplify NewSize calls
7 years ago
Darien Raymond 994aecd13c
rename NewLocal to NewSize
7 years ago
Darien Raymond f97e6fa3d2
refine buffer allocation
7 years ago
Darien Raymond bcfcba396b
simplify auth reader
7 years ago
Darien Raymond 981c43afc2
allow nil additional data generator
7 years ago
Darien Raymond 713ebfb203
implementation for Shadowsocks AEAD
7 years ago
Darien Raymond 97d886e1c9
use all buffers
7 years ago
Darien Raymond 5c9f54a453
fix length check in auth reader
7 years ago
Darien Raymond 594ec15c09
cleanup buffer usage
7 years ago
Darien Raymond 66b82e4ab7
cleanup MultiBuffer
7 years ago
Darien Raymond f5d76c8eb0
fix lint warnings
7 years ago
Darien Raymond 251d6f6fcb
fix lint warning
7 years ago
Darien Raymond ade88fd5c7
reuse buffered writer in auth writer
8 years ago
Darien Raymond 7a4bab4940
support packet transfer type in mux
8 years ago
Darien Raymond 939fae00e9
packet mode reader and writer
8 years ago
Darien Raymond c5aa4acb35
prototype of vpndialer
8 years ago
Darien Raymond 7f1e9c85c9
more effecient auth reader and writer
8 years ago
Darien Raymond e87b0ca848
size encoder and decoder
8 years ago
Darien Raymond 6a90ce3c43
comments
8 years ago
Darien Raymond 6d7aaa6535
bug fixes
8 years ago
Darien Raymond 02ce3ffded
release buffer
8 years ago
Darien Raymond abe790181e
multi reader
8 years ago
Darien Raymond f506a39d32
multi buffer
8 years ago