P2p、install、log package

This commit is contained in:
刘河
2019-04-21 23:03:58 +08:00
parent 45521d5680
commit f6c596f318
16 changed files with 418 additions and 203 deletions

View File

@@ -17,10 +17,14 @@ type Service interface {
Close() error
}
type NetBridge interface {
SendLinkInfo(clientId int, link *conn.Link, t *file.Tunnel) (target net.Conn, err error)
}
//BaseServer struct
type BaseServer struct {
id int
bridge *bridge.Bridge
bridge NetBridge
task *file.Tunnel
errorContent []byte
sync.Mutex