[CentOS] Network communication between hosts
John R Pierce
pierce at hogranch.com
Wed Dec 29 00:21:26 UTC 2010
On 12/28/10 4:09 PM, derleader __ wrote:
> Hi,
> I need advice about developing C++ program. I need to develop 2
> application which must communicate via network using SSL encryption.
> The problem is in which format to exchange the data. I can use XML
> format to exchange data between the hosts but a lot traffic will be
> generated. What are the usual practices to exchange data between the
> hosts?
rather offtopic for this list. but...
XML is about the most inefficient format imaginable, typically exploding
your data to many times its original size, especially if it has lots of
small fields
what format is the data in now that you're exchanging? I'd want to use
something close to the native format of the data. if performance is
important, you'll want to transmit the data in binary as close to its
native format as possible. if its complex structured data such as is
often expressed in XML, you could look at defining a binary interchange
format with JSON or ASN.1, but I'd be more inclined to roll my own
simple binary message format since its just between your own two programs.
More information about the CentOS
mailing list