forked from riobard/go-shadowsocks2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved ciphers to core and simplified import graph
- Loading branch information
Showing
4 changed files
with
27 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,2 @@ | ||
// Package core provides essential interfaces for Shadowsocks | ||
// Package core implements essential parts of Shadowsocks | ||
package core | ||
|
||
import ( | ||
"net" | ||
) | ||
|
||
type Cipher interface { | ||
StreamConnCipher | ||
PacketConnCipher | ||
} | ||
|
||
type StreamConnCipher interface { | ||
StreamConn(net.Conn) net.Conn | ||
} | ||
|
||
type PacketConnCipher interface { | ||
PacketConn(net.PacketConn) net.PacketConn | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters