1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-05 07:50:24 +08:00

完善主程序

This commit is contained in:
fumiama
2021-12-28 21:50:10 +08:00
parent f0956ae742
commit 6ae8e88bd1
18 changed files with 499 additions and 14 deletions

View File

@@ -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
}