server/client_handler.go
crusader 4163705d49 ing
2017-10-27 16:07:14 +09:00

13 lines
256 B
Go

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()
}