Re: Network communication between hosts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



At Wed, 29 Dec 2010 02:28:48 +0200 (EET) CentOS mailing list <centos@xxxxxxxxxx> wrote:

> 
> 
> 
>  Thank you for the reply.
> 
> 
>  The data is not so much - CPU utilization, RAM utilization, List of installed software, list of users and so on. The information is not so much. What are the options for this task is there a C++ library that I can use to convert the data and then to transfer if via network?

You might really do better using a scripting language, such as Tcl,
Perl, or Python.  Doing socket-level I/O (with or without SSL) in C or
C++ is a non-trivial process.


> 
> Regards 
> Peter
> 
> 
>   >>    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.
>  >
>  >
>  >
>  >
>  >_______________________________________________
>  >CentOS mailing list
>  >CentOS@xxxxxxxxxx
>  >http://lists.centos.org/mailman/listinfo/centos
>  >
>  
> MIME-Version: 1.0
> 
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
> 
>                                                                     

-- 
Robert Heller             -- 978-544-6933 / heller@xxxxxxxxxxxx
Deepwoods Software        -- http://www.deepsoft.com/
()  ascii ribbon campaign -- against html e-mail
/\  www.asciiribbon.org   -- against proprietary attachments


                                                                                        
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux