Skip to content

chandanshoun/SerializeObjectWithBoostSocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SerializeObjectWithBoostSocket

This code Serialize object of class EmployeeData and serialize it to a buffer and send over a server socket with Boost Library. Later Server read this buffer and deserialize it back to it class Object Employee data. This example only show how we can Serialize an object and send it to network and Desrialize at server side.

#compile server with

g++ server.cpp BoostSerialize.cpp -o server -lboost_serialization -lboost_system

#compile client with

g++ client.cpp BoostSerialize.cpp -o client -lboost_serialization -lboost_system

./server

./client

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages