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

How to Generate Server Code #240

Open
Meneleus opened this issue Aug 23, 2021 · 4 comments
Open

How to Generate Server Code #240

Meneleus opened this issue Aug 23, 2021 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@Meneleus
Copy link

I used the ZIP version and setup a project with a simple proto file. Generated code with:

protoc --plugin=protoc-gen-qtprotobuf=..\bin\qtprotobufgen.exe --qtprotobuf_out=generated -I. project.proto

However, the generated code only has Client code, there is no server implementation. What do I need to do to generate server code?

Thank You!

@Meneleus Meneleus added the question Further information is requested label Aug 23, 2021
@semlanik
Copy link
Owner

Sad to say, but it's still TBD: #34

@Meneleus
Copy link
Author

Ahh! So, how does this example:

https://github.com/semlanik/qtprotobuf/tree/master/examples/simplechatserver

work?

@semlanik
Copy link
Owner

There is a server that is implemented using the reference C++ API, but be aware that it needs improvements, so if you decide use it as an example for your own, take a closer look at use of a connection queue and the memory leaks that it introduces there.

@Meneleus
Copy link
Author

Meneleus commented Aug 23, 2021

Got ya, that's too bad, I was hoping to use this for a server implementation in Qt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants