mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-02 11:56:53 +00:00
P2p、install、log package
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user