2016-06-14 16:54:08 -04:00
|
|
|
package udp
|
2016-02-01 10:36:33 -05:00
|
|
|
|
|
|
|
import (
|
2017-01-26 14:46:44 -05:00
|
|
|
"context"
|
2021-12-11 18:05:19 -05:00
|
|
|
"github.com/v2fly/v2ray-core/v5/common"
|
2022-01-02 10:16:23 -05:00
|
|
|
"github.com/v2fly/v2ray-core/v5/common/buf"
|
|
|
|
"github.com/v2fly/v2ray-core/v5/common/net"
|
2016-02-01 10:36:33 -05:00
|
|
|
)
|
|
|
|
|
2021-10-23 10:54:42 -04:00
|
|
|
type DispatcherI interface {
|
2021-12-11 18:05:19 -05:00
|
|
|
common.Closable
|
2021-10-23 10:54:42 -04:00
|
|
|
Dispatch(ctx context.Context, destination net.Destination, payload *buf.Buffer)
|
2019-01-05 15:43:22 -05:00
|
|
|
}
|