server/server_handler.go
crusader db8b6e524e ing
2017-10-26 21:08:50 +09:00

19 lines
285 B
Go

package server
import (
"io"
"net"
)
type ServerHandler interface {
Listen() (net.Listener, error)
Handle(remoteAddr string, rwc io.ReadWriteCloser, stopChan chan struct{})
Stopped()
GetAddr() string
Validate()
accept(l net.Listener) (io.ReadWriteCloser, string, error)
}