this is a helper function for you can transport grpc request over kcp
"kcp is a lightweight and fast network protocol, it is used for high performance communication between two endpoints."
how to use
-> go get -u github.com/Lynnworld/grpc-kcp-transport
// server
address := "localhost:8080"
cfg := &kcp.Config{}
server := grpc.NewServer()
demo.RegisterDemoServer(server, &serverImpl{})
server.Serve(address,server,cfg)
// client
address := "localhost:8080"
cfg := &kcp.Config{}
cc, err := grpc.Dial(address, grpc.WithTransportCredentials(insecure.NewCredentials()), kcp.Dialer(cfg))
you can view example for grpc server / client demo , it use both TCP/KCP for grpc serving
for more details, please visit: