Custom gRPC backend?

113 views
Skip to first unread message

kk1...@nyu.edu

unread,
Jan 13, 2017, 3:34:45 PM1/13/17
to grpc.io
Hi,

I'm interested in trying out gRPC on the top of KCP protocol https://github.com/skywind3000/kcp/blob/master/README.en.md , can anyone point me out which files I should look for this custom port (C++)?  And I also wonder how doable this is.

Thanks,
Kibeom

Carl Mastrangelo

unread,
Jan 13, 2017, 6:44:25 PM1/13/17
to grpc.io, kk1...@nyu.edu
You would have to implement your own transport.  I don't think there are any public examples of how to do this today.  Java has some, but I am not sure for C++. 

Craig Tiller

unread,
Jan 13, 2017, 6:53:34 PM1/13/17
to Carl Mastrangelo, grpc.io, kk1...@nyu.edu
Since kcp implements a byte stream interface (as does tcp), probably you could implement grpc_endpoint for it, and layer chttp2 atop that.

An example of setting the stack up on top of an endpoint is contained in channel_create_posix.c and server_chttp2_posix.c (for client and server respectively).

The idea would be: create a grpc_endpoint that wraps kcp, then wrap it with a transport, then a channel, and then bind it into the stack.

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/672ee597-ba05-495a-9923-5339df1f710e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

kk1...@nyu.edu

unread,
Jan 13, 2017, 7:03:16 PM1/13/17
to grpc.io, not...@google.com, kk1...@nyu.edu
Thanks!
Reply all
Reply to author
Forward
0 new messages