Some examples of socket programming and serialization