2018-04-05 15:15:29 +00:00
|
|
|
package socket
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.loafle.net/commons/server-go"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Servlet interface {
|
|
|
|
server.Servlet
|
|
|
|
|
|
|
|
OnConnect(servletCtx server.ServletCtx, conn Conn)
|
2018-06-29 10:02:40 +00:00
|
|
|
Handle(servletCtx server.ServletCtx, stopChan <-chan struct{}, doneChan chan<- struct{}, readChan <-chan SocketMessage, writeChan chan<- SocketMessage)
|
2018-04-05 15:15:29 +00:00
|
|
|
OnDisconnect(servletCtx server.ServletCtx)
|
|
|
|
}
|