You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a protobuf message server which requires me to put the size of the message on the wire, so the following
stream.write(msg, true)
works on sending message (without WriteSize=true the server response error message). Now I have problem of reading the message received from server, apparently the server also encode the size in the message, can we have a flag to indicate the skip reading the size of bytes in the read proc?
BTW, as I have made it work on the nimpb by modifing the compiled nim files, as such:
procwriteXMessage(stream: Stream, message: XMessage) =
stream.protoWriteUInt64(sizeOfXMessage(message)) # write the size ....procreadXMessage(stream: Stream): XMessage=result=newXMessage()
discard stream.protoReadUInt64() # we don't even specify the sizewhilenotatEnd(stream):
...
The text was updated successfully, but these errors were encountered:
I have a protobuf message server which requires me to put the size of the message on the wire, so the following
works on sending message (without WriteSize=true the server response error message). Now I have problem of reading the message received from server, apparently the server also encode the size in the message, can we have a flag to indicate the skip reading the size of bytes in the read proc?
BTW, as I have made it work on the nimpb by modifing the compiled nim files, as such:
The text was updated successfully, but these errors were encountered: