:: [DNG] Simple-netaid (was: download…
Página Principal
Delete this message
Reply to this message
Autor: Aitor
Data:  
Para: dng
Tópicos Antigos: Re: [DNG] download image ISO of beowulf
Assunto: [DNG] Simple-netaid (was: download image ISO of beowulf)
Hi,

On 1/2/20 13:52, Aitor wrote:
> In the meantime, i'm finishing simple-netaid.


BTW, i'm pushing the new code of simple-netaid to gitlab:

https://git.devuan.org/aitor_czr/simple-netaid.git

Simple-netaid now uses some smart pointers like:

    std::unique_ptr<Foo> foo( new Foo( args ) );

even quite often i personally prefer the use of raw pointers to smart
pointers (despite their manual memory allocation), basicallybecause
raw pointers allow forward declarations in the headers, that is:

    class Foo

instead of:

    #include "foo.h"

avoiding recompilation of all the dependents of foo.h, which may or may
not be a lot of CPU cycles.

On the other hand, in future versions of simple-netaid i might consider
the use of std::shared pointers
in combination with std::weak pointers in the case of the Svr and Cli
classes, whose instances are the
server/client sides of Unix sockets, respectively.

I hope to finish the project as soon as possible in order to include it
in the first official releases
of Gnuinos.

Cheers,

Aitor.