server/client_handler.go

13 lines
256 B
Go
Raw Normal View History

2017-10-27 07:07:14 +00:00
package server
import "io"
type ClientHandler interface {
Dial() (conn io.ReadWriteCloser, err error)
OnHandshake(remoteAddr string, rwc io.ReadWriteCloser) error
Handle(rwc io.ReadWriteCloser, stopChan chan struct{})
GetAddr() string
Validate()
}