We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It's a bit complicated. First I have an unrelated server/client example that uses TLS: https://gist.github.com/2233075
To test/run: ./mkcerts random@whatever.com go run server.go
In another terminal: go run client.go
Now a working example, much like your echo, just slightly more complicated: https://gist.github.com/2300125
It compiles/runs just like go-rpcgen's echo.
Now I tried to merge the two: https://gist.github.com/2300144
So basically I merged my TLS code and the Add Example code.
In add.go (the server) instead of calling ListenAndServeAddService with connection information I call NewAddServiceClient with my connection.
In client.go (the client) instead of calling DialAddService I call NewAddServiceClient with my connection.
I do wonder if my code that's mostly dealing with a TLS.conn is compatible with go-rpcgen code which seems to be expecting a net.conn.
Any ideas?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It's a bit complicated. First I have an unrelated server/client example that uses TLS:
https://gist.github.com/2233075
To test/run:
./mkcerts random@whatever.com
go run server.go
In another terminal:
go run client.go
Now a working example, much like your echo, just slightly more complicated:
https://gist.github.com/2300125
It compiles/runs just like go-rpcgen's echo.
Now I tried to merge the two:
https://gist.github.com/2300144
So basically I merged my TLS code and the Add Example code.
In add.go (the server) instead of calling ListenAndServeAddService with connection information I call NewAddServiceClient with my connection.
In client.go (the client) instead of calling DialAddService I call NewAddServiceClient with my connection.
I do wonder if my code that's mostly dealing with a TLS.conn is compatible with go-rpcgen code which seems to be expecting a net.conn.
Any ideas?
The text was updated successfully, but these errors were encountered: