i getting segment fault due to string data type variable in PROTOBUF
server and clent communcation through sockets on recv end in cpp
/* when i am sending a protobuf variable through socket communication on
recv end i am trying to display the string variable of protobuf i got
segmentation in this remaining Data type other than String they are
working fine but string variable case i got sementation How can i over
come in Protobuf string datatype sementation fault other than we have any
other data type for store the string data type */
i create a example.proto with in string variable name is there i am
compile example.proto with protoc compiler( protoc example.proto --cpp_out
) it create two files two files example.pb.h, example.pb.cc By using these
files i create a test_server.cpp and test_client.cpp And compile it. but
at the time of both programms runing i sent a protobuf variable on recv
side it give segmentation fault due to trying to display string variable
How can i over come this problem
example.proto
/package data; message star { optional string name=1;}/ This my file
No comments:
Post a Comment