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

Compatible with the official generated codes? #38

Closed
zhaojkun opened this issue Jun 26, 2015 · 3 comments
Closed

Compatible with the official generated codes? #38

zhaojkun opened this issue Jun 26, 2015 · 3 comments

Comments

@zhaojkun
Copy link
Contributor

I have writen some service using the code generated by apache official tool,then use go-thrift in the client,but the client failed to call the service.Is it compatible with codes generated by the official tool ?

@samuel
Copy link
Owner

samuel commented Jun 26, 2015

The serialization and RPC protocol are fully compatible, but the generated code and package interface are not. I took a different road with this package trying to make it smaller and nicer to use by being more natural Go. This package includes a generator though that you can use to create compatible structs and RPC interfaces if you like.

If you're having difficulties with communications between client and server the cause I've most often seen is difference in either using a framing or non-framing transport.

@zhaojkun
Copy link
Contributor Author

Thank you.I have used the non-framing transport and the commutation is ok .
But in the my project.The number of one struct fields is 103 , larger than 64.So I think using a bitset struct in structMeta other than uint64 may be better.

@samuel
Copy link
Owner

samuel commented Sep 25, 2015

I opened up a separate issue to track the issue with ID >= 64: #62

@samuel samuel closed this as completed Sep 25, 2015
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