Re: Removal of GNUNET_CONFIGURATION_default() in 0.23

2024-12-10 Thread Alessio Vanni
Hello, (for some reason I didn't receive Christian's e-mail, so I'm replying here for both.) I'm not using the GNUnet configuration as my own, I always initialized the application using GNUNET_OS_init with application-specific values. The test.c file I attached to my first e-mail does do that t

Removal of GNUNET_CONFIGURATION_default() in 0.23

2024-12-10 Thread Alessio Vanni
Hello, GNUnet 0.23 changed the way GNUNET_OS_ProjectData is used, moving it from being global state to a function parameter in commit 9ab62c62c3d508033d31ea5289013255ec7a0c87. The same commit also removes the GNUNET_CONFIGURATION_default function to return a new configuration object with GNU

Re: printf-like output for gnunet-search

2022-02-11 Thread Alessio Vanni
Before replying on your points, a correction: the line saying "The main reason is that it's so long to be basically unreadable." wasn't related only to the program's description, but to the whole output, sorry for the confusion. As for the rest: > Man pages are not always installed by people, and

Re: printf-like output for gnunet-search

2022-02-11 Thread Alessio Vanni
madmurphy writes: > I have pushed the new gnunet-search with printf-like capabilities to > the git repository. I have also updated the man page. Feel free to > play with it and write your feedbacks :) I think the help text when using `--help' is too long. That's not really the place to write the

Re: From gnunet-bcd to configure.ac

2021-11-25 Thread Alessio Vanni
but I wanted to push these changes fast as I'm being a bit busy these days and doing it like this means people can still get gnunet-bcd even with a buggy macro. Adding the package checks to AM_CONDITIONAL is trivial, so if people can test it out in the meantime, I can then finalize it for go

Re: From gnunet-bcd to configure.ac

2021-11-22 Thread Alessio Vanni
"Schanzenbach, Martin" writes: > 1. The uncrustify detection is now verbose. configure outputs the > output of "uncrustify". Can we prevent that? It looks like an error. You are right, there was an error in the check. I'm not sure what happened, but AC_CHECK_PROG became AC_CHECK_PROGS (with the

Re: From gnunet-bcd to configure.ac

2021-11-22 Thread Alessio Vanni
Christian Grothoff writes: > I'm a bit confused by this, I don't recall making this change or > discussing something like this with anyone. What I do recall is that we > added the cipher type sometime in the past. However, prefixing by a > readable representation of the string length!?!? Why woul

From gnunet-bcd to configure.ac

2021-11-21 Thread Alessio Vanni
Hello, these past few weeks I've been working on a few things summarized by the subject of this mail. Initially I simply wanted to replace a vector image, but I ended up changing a lot more stuff, including doing some major work on the configure.ac file. It all started when I thought I'd try bri

Re: What's a simple way to set up a private network of a few peers for testing purposes?

2021-09-25 Thread Alessio Vanni
Christian Grothoff writes: > Why don't you just run a few VMs on your local machine? It's not like a > GNUnet peer requires tons of resources, so a typical system should > easily be able to run several VMs with a GNUnet peer in each. If you > then disable external network connectivity, you're pre

What's a simple way to set up a private network of a few peers for testing purposes?

2021-09-23 Thread Alessio Vanni
Hello, as per the subject, I'm looking for a way to set up a small independent network of peers to test an application. What I'm looking for is primarily for this network to exist independently from the normal global GNUnet network that peers connect to when using the default configuration. I do

Re: gnunet-config and build informations (bug #5708)

2021-09-10 Thread Alessio Vanni
Christian Grothoff writes: > With that change, the logic gnunet-config shared with taler-config and > anastasis-config is now properly moved into libgnunetconfig, so we can > avoid the PRELOAD hack in the future. > > For how to do GNUnet-only extensions of the existing gnunet-config tool, > pleas

Re: A GNUNET_log oddity

2021-08-31 Thread Alessio Vanni
Christian Grothoff writes: > GNUnet should run on embedded-ish systems, and binary size does > matter. The idea behind the configure flag is that by default, DEBUG > messages are never included, and only developers can (and likely will) > explicitly enable them to aid their diagnosis. I see, tha

A GNUNET_log oddity

2021-08-29 Thread Alessio Vanni
Hello, I was recently puzzled by a behaviour which apparently has been going on for a while, but I noticed it only now. It seems that `GNUNET_log' (and `GNUNET_log_from') is unable to print messages when the error level is GNUNET_ERROR_TYPE_DEBUG under certain circumstances. Consider this small

Re: Gettext macros (and a couple other ones)

2021-08-29 Thread Alessio Vanni
Christian Grothoff writes: > Good point, but that's a specific issue with that macro, which I agree > should not use "_" but dgettext(). I've fixed this (and a few related) > instance(s) in Git master just now. Hello, thanks for the fix. Related to this issue: since those macros explicitly use

Gettext macros (and a couple other ones)

2021-08-25 Thread Alessio Vanni
Hello, there is a problem regarding the usage of gettext in header files, specifically in `gnunet_common.h'. In that file, a number of macros expand to a call to `GNUNET_log' with its template string wrapped inside a call to `_', which is the common gettext alias. Within GNUnet itself this doesn

Re: gnunet-config and build informations (bug #5708)

2021-08-03 Thread Alessio Vanni
Hello, apologies for the late reply... Christian Grothoff writes: > I suggest youy pass all of the information (also possibly via #define's) > into the GNUNET_OS_ProjectData and grab it from there! That way, Taler > can override it without having to change gnunet-config itself. I'm not really

Re: gnunet-config and build informations (bug #5708)

2021-07-25 Thread Alessio Vanni
Hello, Christian Grothoff writes: > GNU Taler has taler-config, which recycles gnunet-config in a funky way > using LD_PRELOAD: > > https://git.taler.net/exchange.git/tree/src/util/taler-config.in > > This works, because there is: > https://git.taler.net/exchange.git/tree/src/util/os_installatio

Re: gnunet-config and build informations (bug #5708)

2021-07-25 Thread Alessio Vanni
Hello, "Schanzenbach, Martin" writes: > But what the OP in the report also and possibly primarily thinks is missing > is a way to get the build information > which is output on configure at the end which is useful for users to > understand what kind of build configuration their gnunet installa

gnunet-config and build informations (bug #5708)

2021-07-24 Thread Alessio Vanni
Hello, I made an attempt at implementing what was discussed in bug #5708 [0], that is, additional flags for `gnunet-config' to print various informations similar to what other `*-config' tools do (e.g. `nss-config'.) After sending this mail I'm going to push a branch called 'dev/vanni/build-info'

Re: CADET API: Obtaining the CADET channel closure?

2021-06-01 Thread Alessio Vanni
Christian Grothoff writes: > Hi Alessio, > > You should store a copy of the 'cls' together with your channel handle. > Typically, the 'cls' would actually point to the struct in which you > store your channel handle. So if you do this in any reasonable way, you > should not need an API to lookup

CADET API: Obtaining the CADET channel closure?

2021-05-24 Thread Alessio Vanni
Hello, there might be a better way to do what I'm trying to do, but I couldn't really think of it, so here it is: I'm opening CADET channels on demand and then stashing them away until they are needed again (or closed.) Because those channels require some "state" when something is received throug

Re: Improving FCFS daemon

2021-05-19 Thread Alessio Vanni
"Schanzenbach, Martin" writes: > Can be merged from my point of view. Hello, I merged the branch with master and pushed it. Hopefully nothing wrong happened. Thanks, A.V.

Re: Improving FCFS daemon

2021-05-16 Thread Alessio Vanni
Alessio Vanni writes: > Huh, that's strange. Admittedly, I didn't properly test successful > insertions, but I didn't get any crash on errors. > I'll check it out. I pushed a fix for this. It was indeed because I had forgotten to put terminating NULL values in t

Re: Improving FCFS daemon

2021-05-15 Thread Alessio Vanni
"Schanzenbach, Martin" writes: > Adding them seems to work but the service then > crashes in all cases (error, success) at gnunet-namestore-fcfsd.c:326. Huh, that's strange. Admittedly, I didn't properly test successful insertions, but I didn't get any crash on errors. I'll check it out. > Oh a

Improving FCFS daemon

2021-05-15 Thread Alessio Vanni
Hello, I was looking at the list of bugs on Mantis and through [1] I discovered the FCFS daemon (the namestore is not a component I've checked in details.) I think it's a useful tool, so I tried improving it. I pushed a branch called "/dev/vanni/fcfsd" and the (currently only) commit adding the

Re: Two small questions about some components

2021-04-22 Thread Alessio Vanni
7f7ead2386ba10987f1bccabcb75c2419612bcba Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Thu, 22 Apr 2021 18:06:13 +0200 Subject: [PATCH 1/2] Swap gnunet-config's default behaviour for the rewrite flag With the previous default, a configuration file could keep values different from t

Two small questions about some components

2021-04-20 Thread Alessio Vanni
Hello, I was investigating something in the codebase and found two things I'd like to ask clarifications for. They are small and there is no need to send two different mails, hence the subject of this mail. 1. I was looking at common_logging.c and found this: static enum GNUNET_ErrorType get_typ

Load plugins when ProjectData is different (patch) (part 2)

2021-04-04 Thread Alessio Vanni
A.V. [0] https://lists.gnu.org/archive/html/gnunet-developers/2020-12/msg8.html >From d46844972f2baa061ef7aa333eb11a8755f22898 Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Sun, 4 Apr 2021 16:51:09 +0200 Subject: [PATCH] Implement function to load plugins within a specific context Wh

Re: Load GNUnet's plugins even when ProjectData is different (patch)

2020-12-13 Thread Alessio Vanni
Christian Grothoff writes: > Hi Alessio, > > The idea is good, but I dislike two details: > > 1) GNUNET_PLUGIN_load_all_default should be a function, not a macro; It's a macro because the original `load_all' is declared with a void return value, so instead of calling two functions (`load_all_def

Re: GNUNET_OS_start_process and process arguments

2020-12-13 Thread Alessio Vanni
Christian Grothoff writes: > That's intentional. Same as with 'exec'. First argument is the file > name/path to the binary, and argv[0] is separate. See 'exec'. In > general, simply pass the binary name twice. > > -Christian Thank you for the explanation. Since the documentation simply says "st

GNUNET_OS_start_process and process arguments

2020-12-13 Thread Alessio Vanni
Hello, I noticed a curious situation, best explained by this example: Let's say I have a program (let's call it 'gnunet-exec') that starts a process using `GNUNET_OS_start_process', with the program file name taken from the command line and using the two strings "hello" and "world" as arguments t

Load GNUnet's plugins even when ProjectData is different (patch)

2020-12-13 Thread Alessio Vanni
[0] https://lists.gnu.org/archive/html/gnunet-developers/2020-07/msg00049.html >From b1255303796c1fbe971b08251e05ab4c28349b28 Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Sun, 13 Dec 2020 15:20:38 +0100 Subject: [PATCH] Add macro to load plugins within GNUnet's context When `GNUNET_OS_i

Re: About re:claimID

2020-12-06 Thread Alessio Vanni
Martin Schanzenbach writes: > The gist of the flow is also here: > https://docs.gnunet.org/handbook/gnunet.html#reclaimID-Identity-Provider Thank you, completely forgot about the handbook! > Basically: > 1. A relying party requests a set of attributes from the user > 2. The user decides if he w

About re:claimID

2020-12-05 Thread Alessio Vanni
Hello, for a number of reasons I'm looking into ways to authenticate a user with a custom service (i.e. not something already existing), so I started checking out re:claimID as it seems to be the solution. I have two questions about it: 1. is there some other documentation aside from what is on

Re: Open questions regarding new messenger and secushare and organization Was: Make GNUnet Great Again

2020-11-13 Thread Alessio Vanni
Martin Schanzenbach writes: > tl;dr: > - Should we move towards a monolithic gnunet.git repo which includes > gtk/secushare again? > - Should we instead move optional components (conversation, reclaim, > messenger) out of gnunet.git as extensions? Hello, I want to express my opinion on the matt

Fix a bug with partial ProjectData and -c flag

2020-10-26 Thread Alessio Vanni
.V. >From 098b884da641e141f1972649ff155cf6bc306e03 Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Mon, 26 Oct 2020 01:26:27 +0100 Subject: [PATCH] - fix '-c' in applications without base config --- src/util/configuration_loader.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-)

Re: FS's anonimity levels in other applications

2020-10-19 Thread Alessio Vanni
Christian Grothoff writes: > I don't see how the anonymity level of FS can possibly be > abstracted/used in other services. The anonymity level tries to capture > the available cover traffic, and only traffic that is basically > "indistinguishable" in terms of the origin should count. As (for > e

FS's anonimity levels in other applications

2020-10-17 Thread Alessio Vanni
Hello, I have a simple question: can the whole "anonimity level" mechanism used by FS be "abstracted" so that other unrelated applications can use it, or is it deeply connected with FS's architecture? I can think of a few applications that might want to use it instead of using e.g. CADET as-is, s

Allow omitting some fields in ProjectData

2020-10-10 Thread Alessio Vanni
en without installing an empty configuration file in `GNUNET_OS_IPK_DATADIR'. Thanks, A.V. >From 67adc95a802f0c88ba048af75b96a082cd90c129 Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Sat, 10 Oct 2020 17:19:53 +0200 Subject: [PATCH] Allow applications to change ProjectData

Stop flooding log files while waiting for TNG

2020-09-24 Thread Alessio Vanni
new code. In the meantime, it will avoid a lot of noise and disk activity. Thanks, A.V. >From 86819deb0a6c2e680bdc33f273a865e62ec807be Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Thu, 24 Sep 2020 22:04:17 +0200 Subject: [PATCH] Disable some diagnostic until TNG is available --- configu

Re: Properly initialize GNSRECORD even when outside of GNUnet (patch)

2020-07-15 Thread Alessio Vanni
gument. Attached is a patch to fix it. Sorry and thanks again, A.V. >From 535193f2c01c21e21e7d2459d815d07ce039acab Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Wed, 15 Jul 2020 20:58:51 +0200 Subject: [PATCH] - Use correct argument in GNUNET_OS_init call --- src/gnsrecord/gnsrecord

Properly initialize GNSRECORD even when outside of GNUnet (patch)

2020-07-15 Thread Alessio Vanni
ers/2020-07/msg9.html >From 998126274cca69b87dd58d04d7b62514d121e496 Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Wed, 15 Jul 2020 17:21:39 +0200 Subject: [PATCH] Load GNSRECORD plugins within GNUnet's context When applications set a new project data structure using `GNUNET_OS_init&#

Obtain GNUnet's default configuration (patch)

2020-07-03 Thread Alessio Vanni
_OS_init' (or at any other point in time, really.) Please review it so I can fix anything if needed. Thanks, A.V. >From 2a30dca1819c4a7fd03a4d820d16968ca296efdf Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Fri, 3 Jul 2020 22:37:42 +0200 Subject: [PATCH] Add function to return GN

Re: Is there a reason why GNUnet forcefully sends a message of type 6?

2020-05-27 Thread Alessio Vanni
ts (if the patch is accepted) to GNUnet... >From a3bffbe0e38fd336ad2230185c79e9e0466e4a11 Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Wed, 27 May 2020 15:01:30 +0200 Subject: [PATCH] Make REQUEST_AGPL messages configurable and add handler by default This makes two changes: *

Re: Is there a reason why GNUnet forcefully sends a message of type 6?

2020-05-25 Thread Alessio Vanni
Christian Grothoff writes: > If you are linking against GNUnet libraries, you fall under the AGPL. > It does not matter whether you are in our repository. That was the missing link. From what I gathered the license is like the normal GPL so my application will have to be licensed as AGPL too.

Re: Is there a reason why GNUnet forcefully sends a message of type 6?

2020-05-23 Thread Alessio Vanni
Christian Grothoff writes: > Actually, no. Type 6 implements our *Affero* GPL mechanism to provide > anyone who accesses *any* GNUnet service with the means to download the > source code. GNUnet is released under the AGPL, which specifically > states that such a mechanism to obtain the source mus

Re: Is there a reason why GNUnet forcefully sends a message of type 6?

2020-05-22 Thread Alessio Vanni
Christian Grothoff writes: > Hi Alessio, > > I'm pretty sure that we don't actually ever send the REQUEST_AGPL > messages to services. So if you got one, that suggests that either your > transmission was somehow wrong (i.e. wrong length, maybe > big-endian/little-endian issue?) or you have some m

Is there a reason why GNUnet forcefully sends a message of type 6?

2020-05-22 Thread Alessio Vanni
Hello, I wrote a small service which is meant to be part of a bigger project. While I was checking stdout to see if everything worked correctly, I was notified that there was no handle for a message of type 6 and size 4 (and subsequently that the handle in the service didn't call `GNUNET_SERVICE_c

Re: Request for Feedback: new BIO API

2020-05-15 Thread Alessio Vanni
Christian Grothoff writes: > This looks indeed perfect to me, modulo possibly one issue that is > totally unrelated to the design and more like a legacy bug you're copying: > https://en.wikipedia.org/wiki/Endianness#Floating_point > implies that we should actually also do network byte order conve

Re: Request for Feedback: new BIO API

2020-05-14 Thread Alessio Vanni
nything. That was what prompted me to check the web archive. Anyway, I received my second mail (the one you replied to) so everything seems to be fixed, whatever the problem was. Thanks, A.V. >From 8ac66216adada0dd45c3a29caaf7a4e63bb2d626 Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Thu, 14 Ma

Re: Request for Feedback: new BIO API

2020-05-11 Thread Alessio Vanni
(For some reason, I'm not receiving all the mails from this list. Some are arriving, some not. Not sure what is going on, if there's an issue in a configuration somewhere or simply a network problem; still, I had to reply like this because I didn't receive anything and noticed the reply only beca

Request for Feedback: new BIO API

2020-05-09 Thread Alessio Vanni
y objective evaluation :) Thanks, A.V. --- [1] https://lists.gnu.org/archive/html/gnunet-developers/2020-04/msg00015.html >From 0cf140eae8a36699ef5cb917e1c60f1b3b020c0f Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Sat, 9 May 2020 14:20:48 +0200 Subject: [PATCH] New BIO API --- src/include

Re: Let BIO also handle already allocated buffers

2020-04-19 Thread Alessio Vanni
Florian Dold writes: > We already have something exactly like that: > > https://git.gnunet.org/gnunet.git/tree/src/include/gnunet_buffer_lib.h Oh... didn't notice it. Sorry. > Maybe it makes more sense to add new functionality to the buffer lib? > I.e., teach the buffer lib to read from / write

Re: Let BIO also handle already allocated buffers

2020-04-19 Thread Alessio Vanni
Christian Grothoff writes: > However, there are two issues. First, your patch introduces a new type > 'struct GNUNET_BIO_MemoryHandle'. I think to avoid having to duplicate > all of the individual BIO-read/write functions Yes, I made a new struct to avoid touching already-existing code. Mostly,

Let BIO also handle already allocated buffers

2020-04-18 Thread Alessio Vanni
rts. Thanks, A.V. >From c1951bac149e49ccf12d57ae59c891c2cee92424 Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Sat, 18 Apr 2020 16:20:27 +0200 Subject: [PATCH] Add formatted I/O to buffers allocated in memory --- src/include/gnunet_bio_lib.h | 219 ++ src/ut

gnunet-qr notifies a failure despite adding the record

2020-03-23 Thread Alessio Vanni
Hello, I'm trying to add a GNS URI through 'gnunet-qr', but even though the record is successfully added, the program reports that it failed to add it. The URI is generated by 'gnunet-bcd'. Actually, as I can't scan QR codes through the webcam, I hacked 'gnunet-qr' to parse PNG files. I tested th

Re: 'gnunet-namestore' does not honour expiration dates when importing URIs

2020-03-21 Thread Alessio Vanni
Christian Grothoff writes: > Hi Martin, > > Why do you say that PKEY expiration values should have to be 'forever'? > PKEY records have expiration times like any other record and they don't > have to be eternal. > > Now, I can see that the main use case (import via URL) may have a > difficulty of

'gnunet-namestore' does not honour expiration dates when importing URIs

2020-03-20 Thread Alessio Vanni
the problem. Thank you, A.V. >From 6f9ff18588ac64bad4963e0036a987fe1d041f1e Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Fri, 20 Mar 2020 15:35:54 +0100 Subject: [PATCH] Make gnunet-namestore honour expiration dates when importing an URI --- src/namestore/gnunet-namestore.c | 17 ++

Re: Problems with gnunet-qr

2019-12-18 Thread Alessio Vanni
Christian Grothoff writes: > Could it be that you added it twice? PKEY records are mutually > exclusive, so if one exist, trying to create another one would cause > this type of error. I made sure to delete the record first and it still happen. However, also see below. > Actually, a bug in the

Re: Problems with gnunet-qr

2019-12-17 Thread Alessio Vanni
Christian Grothoff writes: > Hi Alessio, > > I've now fixed and tested gnunet-qr, so it should work now. > > Thanks for reporting! > > -Christian Yes, I pulled the fixes from the repository and tested it. The GNS URI is correctly passed to gnunet-namestore which then adds the PKEY record; howev

Re: Problems with gnunet-qr

2019-12-16 Thread Alessio Vanni
I accidentally sent this reply only to Christian, but it should be sent to the list too. Apologies to Christian for the double mail. (Will I ever be able to reply to this list without messing up?) Christian Grothoff writes: > OMG. That shouldn't even look like that. We have a special function

Problems with gnunet-qr

2019-12-15 Thread Alessio Vanni
Hello, Due to the fact that I don't have a device that can work with gnunet-qr, I decided to hack it in an attempt to add support for PNG files. The attempt was mostly successful, but I met some issues that made the program generate errors. The first error isn't particularily serious, but I thou

Re: [GNUnet-developers] Sending large data

2019-10-21 Thread Alessio Vanni
Alessio Vanni writes: > I made sure to use a new envelope each time. In fact, the real > implementation is a dedicated function that does some basic checking > (e.g. make sure the pointer to the data is not NULL) before sending the > message. I tried calling it both inside a nor

Re: [GNUnet-developers] Sending large data

2019-10-20 Thread Alessio Vanni
Christian Grothoff writes: > Yes, in the worst-case they are buffered in the _client_ processes' > memory. You can check the MQ API (length, send callback) for ways to > find out if your messages are piling up (or at least have left your > process), so you DO have a way to do proper flow control.

Re: [GNUnet-developers] Sending large data

2019-10-17 Thread Alessio Vanni
Christian Grothoff writes: > Segmenting is the right answer. As for 'fast enough', there is usually > no requirement on how fast you call those APIs. However, for a CADET > channel, the receiver must call "GNUNET_CADET_receive_done" after each > message. Until you call that function, you won't ge

Re: [GNUnet-developers] Make "gnunet-arm -e" not hang

2019-09-29 Thread Alessio Vanni
Christian Grothoff writes: > If you get the "GNUNET_CLIENT_test()" symbol undefined, then somehow > you're not linking against the 'right' (latest) libgnunetutil. Maybe you > have two installations on your system, and the linker finds the wrong > one? Please make sure you only have one libgnunetu

Re: [GNUnet-developers] Make "gnunet-arm -e" not hang

2019-09-28 Thread Alessio Vanni
xrs writes: > Seems to work. Thank you! It's the opposite for me, instead. If I run "gnunet-arm -s" the program hangs even though the services are running. On the other hand, "gnunet-arm -e" says the `GNUNET_CLIENT_test' symbol is undefined. The hang happens for any flag that is not "-e". I

Re: [GNUnet-developers] Make "gnunet-arm -e" not hang

2019-09-25 Thread Alessio Vanni
Christian Grothoff writes: > Right now, my best idea is to modify GNUNET_PROGRAM_run() to detect "is > ARM running" by asking it which services are running, and if we fail to > detect the ARM listen socket, we give up hard. Furthermore, we could > pass information to GNUNET_PROGRAM_run() which s

Re: [GNUnet-developers] Consider phasing out GNUNET_SERVICE_MAIN

2019-09-08 Thread Alessio Vanni
on Sep 17 00:00:00 2001 From: Alessio Vanni Date: Sun, 8 Sep 2019 16:29:11 +0200 Subject: [PATCH] Add initialization to service --- src/ext/gnunet-service-ext.c | 32 1 file changed, 32 insertions(+) diff --git a/src/ext/gnunet-service-ext.c b/src/ext/gnunet-serv

Re: [GNUnet-developers] Consider phasing out GNUNET_SERVICE_MAIN

2019-09-07 Thread Alessio Vanni
Christian Grothoff writes: > but in this case there seems to be a better alternative: use > a C constructor to call GNUNET_OS_init(): > > /** > * Initialize i18n > */ > void __attribute__ ((constructor)) i18n_init () { > GNUNET_OS_init (...); > } > > Constructors run before main(), so that sh

[GNUnet-developers] Consider phasing out GNUNET_SERVICE_MAIN

2019-09-07 Thread Alessio Vanni
In the meantime, the attached patch adds localization to services. Until now, even if the locale is changed, any message printed by a service would not be translated regardless of what the relevat PO file contains. Thanks, A.V. >From 85bd2ed1c06816cc851cb51263c44615f5e40347 Mon Sep 17 00:00

[GNUnet-developers] Make applications localizable

2019-09-01 Thread Alessio Vanni
;m still not subscribed to the list... yet. >From ab468fc8110316f3ec8c4651a95b058b82812e86 Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Sat, 31 Aug 2019 00:23:19 +0200 Subject: [PATCH] Improve how gettext is used --- src/include/gnunet_os_lib.h | 12 src/include/plat

Re: [GNUnet-developers] Patch for gnunet-ext

2019-08-08 Thread Alessio Vanni
le? I'm not sure if the ProjectData struct should be initialized for gnunet-ext-service too, though. A.V. >From e0b0bd62037f4d40eb370e4dcfd96d70503508e7 Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Thu, 8 Aug 2019 16:27:28 +0200 Subject: [PATCH] Print help on GNU software only wh

[GNUnet-developers] Patch for gnunet-ext

2019-08-07 Thread Alessio Vanni
unet-developers/2019-08/msg5.html [2] https://gitlab.com/gnunet/gnunet/merge_requests/1 >From 39c08b8b1c3d4a7402c0174cc6e3b077f5316a02 Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Tue, 6 Aug 2019 19:36:01 +0200 Subject: [PATCH] Add version string to GNUNET_OS_ProjectData --- src

Re: [GNUnet-developers] On applications using GNUnet

2019-08-06 Thread Alessio Vanni
> You are not doing something wrong. There is no callback called, after > you call GNUNET_CADET_close_port. Can you please point me to the > outdated documentation. The GNUnet handbook on gnunet.org has a section on libcadet, but it explains it by using an API that is different than the current on

Re: [GNUnet-developers] On applications using GNUnet

2019-08-06 Thread Alessio Vanni
> I don't know which documentation sentence in what manual you are > referencing here, but I think that documentation is simply wrong. CADET > is port-scan resistant, in that the peer will simply not send anything > back if the port is not open. In fact, CADET will accept your incoming > request in

Re: [GNUnet-developers] Fwd: On applications using GNUnet

2019-08-06 Thread Alessio Vanni
Christian Grothoff writes: > That said, if you're truly not part of GNUnet, you might want your > service to be launched using the usual OS-specific way for launching > services (i.e. systemd, upstart, sys5init, whatever) instead of using > GNUnet ARM (and then just tell your OS-specific launcher

Re: [GNUnet-developers] On applications using GNUnet

2019-08-06 Thread Alessio Vanni
Christian Grothoff writes: > Have a look at the attached os_installation.c from GNU Taler. It shows > you how to initialize libgnunetutil to customize the --help output (at > least some of it). It also demonstrates how we could easily enable > further customizations in the future, if necessary.

Re: [GNUnet-developers] On applications using GNUnet

2019-08-05 Thread Alessio Vanni
Hi Martin, > 0. Is there a reason you include the new header into every single C file? > There does not seem to be > a need for that in most cases. It was mostly future-proofing. While I was making changes I wasn't sure if I were going to put some other things in there, so just in case I added

Re: [GNUnet-developers] On applications using GNUnet

2019-08-05 Thread Alessio Vanni
Hi Martin, > Are you building your app in a separate source tree (gnunet-ext) or inside > gnunet? > If it is the latter, then this is the expected behaviour. > If it is the former, then this might also be an issue that could be addressed > in gnunet-ext => bugreport. At first I used gnunet-ext,

[GNUnet-developers] On applications using GNUnet

2019-08-04 Thread Alessio Vanni
Hello everyone. I've been following the project for a while and, besides keeping the peer active when possible, I've also tried developing some simple clients/services. In this mail I want to report a couple of things I think are a problem and ask some questions to some things I couldn't fully gr