Plain anonymous pipes - which wrapper model are you using? (WinAPI, C ++)
I have two running processes on Windows and each process has a pipe to the other.
I want to serialize a complex class and pass it from one process to another. I already have a serialization routine and I understand that pipes send binary streams. What should I do with sending serialized data? I am using WinAPI and C ++.
Should I develop my own protocol? If so, should it be common or unique for this class? Can I save virtual tables when submitting a serialized class?
Are there any models or design patterns that are commonly used in this case? Some example code would be greatly appreciated. Thank!
source to share
Here is a tutorial for boost::serialization
. I could imagine this would be ok to pipe data and deserialize on the other side: http://www.boost.org/doc/libs/1_37_0/libs/serialization/doc/tutorial.html
source to share