Checked how to use objectstream with socket
todo : define constants, vo into a library make it to library project