13 lines
256 B
Go
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()
|
|
}
|