mirror of
https://github.com/CosmicStar98/bedrocktool.git
synced 2024-06-03 03:25:15 +00:00
20 lines
356 B
Go
20 lines
356 B
Go
|
package seconduser
|
||
|
|
||
|
import "github.com/df-mc/dragonfly/server/session"
|
||
|
|
||
|
type fwdlistener struct {
|
||
|
Conn chan session.Conn
|
||
|
}
|
||
|
|
||
|
func (l *fwdlistener) Accept() (session.Conn, error) {
|
||
|
return <-l.Conn, nil
|
||
|
}
|
||
|
|
||
|
func (l *fwdlistener) Disconnect(conn session.Conn, reason string) error {
|
||
|
return conn.Close()
|
||
|
}
|
||
|
|
||
|
func (l *fwdlistener) Close() error {
|
||
|
return nil
|
||
|
}
|