I do not know what you are using a compiler, but you can say you are using Delphi, you can create a class from TPersistent descendants. You want to transfer the data can be stored in this class of property released ... then you can use in the Delphi streaming mechanism, and said, Indy components and simply flow through the socket connection class.