mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-05 07:50:24 +08:00
完善主程序
This commit is contained in:
@@ -2,7 +2,15 @@ package upper
|
||||
|
||||
import "io"
|
||||
|
||||
// 常用服务端口
|
||||
const (
|
||||
// ServiceNull 不在意端口号的服务
|
||||
ServiceNull = iota
|
||||
// ServiceTunnel 管道通信服务
|
||||
ServiceTunnel
|
||||
)
|
||||
|
||||
type Service interface {
|
||||
Create(peer string, srcport uint16, destport uint16) (Service, error)
|
||||
Create(peer string, srcport, destport, mtu uint16) (Service, error)
|
||||
io.ReadWriteCloser
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user