[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Edlug Archive Mar 2004 ]

Re: [edlug] OT: Linux-Windows datastructure exchange C++




Tim Day wrote:
You really, REALLY, shouldn't be trying to do this; ideally you need to
marshall binary data across a network connection, to handle endianness,
packing, alignment etc. Use CORBA or DCOM with C++, (if there is a Linux
DCOM implementation), or RMI etc. with Java.


Whoah!  Hold it right there.  The technologies you list are clever stuff,
and have their applications but for simplicity and reliability there's
nothing beats TCP & UDP.

These technologies are layered. CORBA, DCOM etc are not replacements for or enhancements to TCP/IP etc, they are higher layers in the protocol stack - they exist to provide the services, amongst others, you outline in KISS:


> KISS: If all he wants to do is get a struct (without any embedded
> pointers) from A to B, then provided he pays attention to packing and
> (too often forgotten in these x86 dominated times) endianness (aka
> "network byte order") ie defines the protocol on the wire then
> why the need for anything more complex.

Generally using software that already exists, has been tried and tested is more effective and reliable than rolling your own.

Dick
-
----------------------------------------------------------------------
You can find the EdLUG mailing list FAQ list at:
http://www.edlug.org.uk/list_faq.html



This archive is kept by wibble@morpheux.org.DONTSPAMME
homepage