Looking for the best example you guys know of.
The examples on the site are with files. But the library should be able to work over a Java.net.ServerSocket, at least I hope.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can certainly write protocol buffers to an
OutputStreamand read them from anInputStream. The Protocol Buffers project itself hasn’t specified an RPC protocol, but third parties have done so. Alternatively, if you’re simply interested in transmitting a message, you should be able to wrap that message in any protocol which allows you to either specify a byte array and retrieve it at the other end, or which gives you a stream-based API.If you need an example using a specific RPC technique listed in the third party add-ons page, I suggest you look at the home of that particular project.