Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KCP Example server WithBlockCrypt unresolved reference #7

Closed
richp10 opened this issue May 26, 2018 · 4 comments
Closed

KCP Example server WithBlockCrypt unresolved reference #7

richp10 opened this issue May 26, 2018 · 4 comments

Comments

@richp10
Copy link

richp10 commented May 26, 2018

Exact code as shown in the KCP example -

s := server.NewServer(server.WithBlockCrypt(bc))

This line cannot be compiled as the .WithBlockCrypt is an unresolved reference (kcp is visble)

@smallnest
Copy link
Member

Did you use latest rpcx? Did you add kcp inbuildtags?
WithBlockCrypt exists in https://github.com/smallnest/rpcx/blob/master/server/kcp.go

@richp10
Copy link
Author

richp10 commented May 30, 2018

Thanks - that fixed it..

@richp10
Copy link
Author

richp10 commented May 30, 2018

Runs.. however - it now shows INFO "network is not tcp/tcp4/tcp6 so can not start gateway" - looking at the code, using value for s.Serve of kcp will always show this message so maybe does not matter.

The client successfully connects to the server and gets the response - but with packet inspection I see lots of 'unknown destination' packet errors, which keep coming in even after the client exits. Any thoughts?

@smallnest
Copy link
Member

You can ignore the INFO log . It only works for tcp transport.

For the second case, I think it should be the kcp-go issue.

@smallnest smallnest reopened this May 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants