Proxy is working but unstable

This commit is contained in:
9seconds
2018-07-06 10:21:04 +03:00
parent 5413a5b090
commit 88faeb7195
10 changed files with 83 additions and 65 deletions
+7 -2
View File
@@ -13,14 +13,19 @@ type ConnectionType uint8
type ConnectionProtocol uint8
type Hacks struct {
SimpleAck bool
QuickAck bool
}
// ConnectionOpts presents an options, metadata on connection requested
// by the user on handshake.
type ConnectionOpts struct {
DC int16
ConnectionType ConnectionType
ConnectionProto ConnectionProtocol
QuickAck bool
SimpleAck bool
ReadHacks Hacks
WriteHacks Hacks
ClientAddr *net.TCPAddr
}