Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2002:
[Freeciv-Dev] Re: Linux saved game crashes client on Solaris (PR#1522)
Home

[Freeciv-Dev] Re: Linux saved game crashes client on Solaris (PR#1522)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Tuomo Takkula <tuomo@xxxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Linux saved game crashes client on Solaris (PR#1522)
From: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Date: Fri, 31 May 2002 22:58:22 +0200

On Fri, May 31, 2002 at 01:15:13PM -0700, Tuomo Takkula wrote:
> - there is no need to reinvent wheels if you want to transfer binary data
> over the network in a portable way: MPI (e.g. http://www-unix.mcs.anl.gov/mpi)
> pretty much solves the problem by reducing data transfers to the following
> primitives:
> 
> transfer (blocked, unblocked, synchronous, asynchronous) of
> - scalars (char, int, float etc): endianness resolved automatically
> - arrays of scalars:  endianness resolved automatically
> - structures: user must specify sufficient data type information such that
>   endianness can be resolved
> - arrays of structures: ditto

Freeciv already has such primitives:
common/packet:{put,iget}_uint{8,16,32}. These function are just not
used by the attributes.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 Make a software that is foolproof, and only fools will want to use it.


[Prev in Thread] Current Thread [Next in Thread]