Re: [zeromq-dev] FOSDEM community meet-up

2024-01-18 Thread Arnaud Loonstra

Hi all,

FOSDEM is nearing. It would be great to have a meetup somewhere in 
Brussels. At least for a beer.


Anybody up for it?

Rg,

Arnaud

On 05/10/2023 18:12, Benjamin Henrion wrote:
Le jeu. 5 oct. 2023 à 09:13, Arnaud Loonstra  a 
écrit :


We used to have meetings at FOSDEM every year. I think due to the
pandemic we kind of lost that rhythm. I'm hoping to attend FOSDEM
again
this year so I'm up for a hackathon like we used to. I think Benjamin
knew some nice sites we could hang.


I was yesterday at a non-profit biking club where they subrented the 
place for yoga and a bikepolo general assembly. The place is at a 
walking distance from ULB at the end of Avenue Louise with a bar, but 
i would have to talk to the owner and check if it is big enough...


See ya,


Rg,

Arnaud

On 17/05/2023 17:36, Mathieu Soum via zeromq-dev wrote:
> Greetings all,
>
>
> I take advantage of the regain in life of the mailing list to ask
> about the next community meetup.
> We (our company) joined the ZeroMQ family recently with the
ingescape
> project (https://github.com/zeromq/ingescape) but we are using
libzmq,
> czmq and zyre for some years now.
>
> So we were wondering if there are any plans of a community
meet-up at
> the next FOSDEM event on February next year.
> Could be fun!
>
> Cheers,
>
> Mathieu
> ˻
>
>
> ___
> zeromq-dev mailing list
> zeromq-dev@lists.zeromq.org
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] Structured concurrency in java

2023-12-05 Thread Arnaud Loonstra

Hi all,

Don't know if you got the news recently but there is a proposal to add 
structured concurrency to Java.:


https://openjdk.org/jeps/453

How this relates to zeromq is by the fact that Martin Sustrik was 0MQ's 
lead developer until 2011 when he started successors of zeromq. If you 
have followed him he eventually coined the term 'stuctured concurrency' 
and implemented it through libdill for example:


https://sustrik.github.io/libdill/structured-concurrency.html

I always enjoyed Pieter's and Martin's article about multithreading 
magic: http://wiki.zeromq.org/blog:multithreading-magic


Snippet from the JEP: "/Structured concurrency/ is an approach to 
concurrent programming that preserves the natural relationship between 
tasks and subtasks, which leads to more readable, maintainable, and 
reliable concurrent code. The term "structured concurrency" was coined 
by Martin Sústrik  and popularized by 
Nathaniel J. Smith 
. 
Ideas from other languages, such as Erlang's hierarchical supervisors, 
inform the design of error handling in structured concurrency."


Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] ZeroMQ x 1EX

2023-11-14 Thread Arnaud Loonstra
I don't know what you mean with 'get in touch' but there's no front desk 
you can  call. Zeromq is what it is and is maintained and developed by a 
community. Best to get started is to read the guide either online or 
through the book.


https://zeromq.org/get-started/

more in depth questions can always be asked on this ml.

Rg,

Arnaud

On 14/11/2023 02:10, Timur Bogatyrev wrote:

Good day!

We are working on a HFT crypto exchange with FIX/FAST protocols for 
data delivery and trading. For that purpose, we need a low-latency 
message bus and your solution seems to fit our needs. Can we get in 
touch to get more familiar with ZeroMQ and its key features and 
elements? Thank you!


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] ZeroMQ docs

2023-11-04 Thread Arnaud Loonstra

I would just like to add that this is really much appreciated work!

I'm also curious how we can make this work from zproject. But that might 
be a later step.


Rg,

Arnaud

On 03/11/2023 10:29, Francesco wrote:

Hi all,

As an update on this topic: with help from Luca the *conversion of 
documentation from the old Asciidoc-py has been completed*.
As bonus: Github is able to render Asciidocs natively, so e.g. you can 
see the documentation rendered on the fly by just browsing Github 
repo, e.g. see 
https://github.com/zeromq/libzmq/blob/master/doc/zmq_connect.adoc.
Additionally the docs get published to Github 
Pages: https://zeromq.github.io/libzmq/ 


*The integration with ReadTheDocs is also complete*, you can check out 
the result at: https://zeromq.readthedocs.io/en/latest/
Please note that from the flyout menu it's possible to browse docs 
for: libzmq 3.2.6, libzmq 4.0.10, libzmq 4.1.8, latest libzmq 
(master). Just like what we have in http://api.zeromq.org/.
Unlike http://api.zeromq.org/ however, the ReadTheDocs website is 
automatically updated anytime there is a git checkin, so it will 
always show up-to-date documentation.
Also the rendering of the page is using a bigger font and is somewhat 
less compact compared to http://api.zeromq.org/.

Any comment is welcome.

*Next steps* I think are:
* In master branch docs: Fix the "See Also" sections in the doc pages, 
by using unordered lists, instead of space-separated single-line list
* In zeromq.org  website: Update the link 
"Low-level API" to point to https://zeromq.readthedocs.io/en/latest/
* In api.zeromq.org  wikidot: Setup the 
redirection to the new website; according to 
https://www.wikidot.com/doc-modules:redirect-module, it's enough to put
    [[module Redirect 
destination="https://zeromq.readthedocs.io/en/latest/;]]
   in the wiki page... Luca / Kevin, my understanding is that you have 
administrative access to the wikidot for api.zeromq.org... can you try 
setting up this redirect?


Bonus:
* In zeromq.org  website: Create a page to host the 
contents of http://wiki.zeromq.org/docs:contributing
* In master branch docs: Update the link in the "Authors" sections to 
point to the corresponding new page of the "new" zeromq.org 
 website


I will try to contribute some PRs to the zeromq.org 
 website repo to address above points


Thanks,

Francesco



Il giorno mar 24 ott 2023 alle ore 15:35 Francesco 
 ha scritto:


Hi Brett,


FWIW, I think it is very reasonable to accept some syntax
change in
order to migrate to a better supported document compiler and
to gain the
new functionality of readthedocs.  So, for whatever it may be
worth, I
take back my initial opinion to leave the API .txt files as-is.

Actually in my PR I'm proposing to rename all .txt files to .adoc
to clarify they use Asciidoc syntax. It's clearly the correct
extension that should be used according to Asciidoc online resources.
As per the content: I migrated them to use the more modern
asciidoc syntax.

Francesco, I know you have already invested effort down the
asciidoctor
path but maybe it is worth considering to jump fully to a
flavor of
markdown (eg github's)?


I'm not sure. Of course they're biased but Asciidoc community
claims to be better and a "more sound alternative" to Markdown, see:
https://docs.asciidoctor.org/asciidoc/latest/asciidoc-vs-markdown/

A less-biased comparison (much longer to read -- I didn't read it
all) is at:
https://www.dewanahmed.com/markdown-asciidoc-restructuredtext/


Actually, when I
started writing I half assumed they were in markdown and half
assumed
they were in some special markdown'ish GSL syntax and only
later figured
out they were asciidoc.  But then I got confused about how to
compile them (ie,
asciidoc-py vs asciidoctor that you described). Certainly, my
stumbles
were due to my ignorance/assumptions but had the docs been in
markdown,
all these little frictions would not have shown up. Again,
opinion fwiw.

I totally agree.
I also contributed some fixes/new features in the past and
documenting them was tricky. The .txt extension does not help at all.
The use of archaic tools makes it very hard to the "casual"
contributor to see the actual documentation rendered.
Even more tricky: I was expecting api.zeromq.org
 to automatically get updated after some
time the PR was merged... I discovered it's not the case :)

Last but not least: my use case for spending a few hours on this
PR / documentation improvement was very simple: I noticed a very
nice new option (ZMQ_BUSY_POLL) in the release 

Re: [zeromq-dev] About libzmq "domain" inside readthedocs.io

2023-10-31 Thread Arnaud Loonstra

There is also a github user shanesquarestream

https://github.com/ShaneSquareStream

But it hasn't seen any activity for 10 years. It also seems to relate to 
'some' crypto company (ripple)


Rg,

Arnaud

On 31/10/2023 13:04, Francesco wrote:

Hi all,

I noticed that there is a user "shanesquarestream" that has registered 
the project "libzmq" inside readthedocs.io :

https://readthedocs.org/projects/libzmq/

The readthedocs.io  website points to a fork of 
libzmq which has been deleted since then: 
https://github.com/squarestreams/libzmq


Searching for that user "squarestreams" or "shanesquarestream" inside 
github provides no results.


Anybody knows such user/fork of libzmq?

I think it would be nice to get 
https://readthedocs.org/projects/libzmq/ registered against the 
official libzmq project, not to a dead fork...


Thanks!

Francesco


PS: we can still register "https://readthedocs.org/projects/zeromq; 
but I think it might be confusing to have a dead page for libzmq...


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Linux build help?

2023-10-25 Thread Arnaud Loonstra

Hi Axel,

I hope you do not take it personal that the PR got rejected. It can be 
difficult sometimes to align all directions.


Indeed the PR made al lot of changes only to allow an automated tool to 
do its job. I'm not familiar with SAL myself but I agree with Luca the 
resulting code is not desirable. Is there anyway SAL can be included as 
a test without changing all headers? Did you update these headers by 
hand by the way or is this also automated?


Rg,

Arnaud

On 24/10/2023 19:38, Axel R. wrote:
Yep the PR is up for review. It was indeed a trivial issue, there was 
a file under packaging/ that needed the new file listed and the Linux 
builds started working.


I have one more trivial issue where a file locally formatted with 
clang-format -I --style=file doesn’t pass the formatting test on the 
online build.


For some reason the local convention appears to mandate spaces before 
opening parentheses as in MACRO (x) or __attribute (x) which is not 
aligned with most C and C++ formatting rules of the world, where a 
space precedes a parenthesis only after language keywords.


The existing code isn’t conforming strictly to the .clang-format file 
that is checked-in with the project. Some of the existing files change 
if I run clang-format on them with that formatting file, and spaces 
get added before some of the few existing parentheses that don’t have 
one already (e.g. __declspec(dllimport) in zmq.h)


The clang-* build targets created by CMake on Windows fail because 
they call chmod for some reason, so I suspect a new .clang-format file 
does not get created? But why is it needed to set write attributes on 
existing files during builds? And why any build artefact was 
checked-in (if that is the case that .clang-format is supposed to be 
generated)


There should not be so much frictions around minor formatting 
discrepancies. I think this nonstandard spacing policy should be 
abrogated.


“Put a space before an open parenthesis only in control flow 
statements, but not in normal function call expressions and 
function-like macros.” https://llvm.org/docs/CodingStandards.html


This is aligned with most formatting conventions back to the original 
K and I think this project should return to that instead of standing 
out in a nonstandard way, and the formatting rules file should be 
checked-in and not generated as it does not work on all platforms 
today (unless there is a compelling reason to create that file during 
builds?)


Thoughts?

—Axel


Sent from my iPhone


On Oct 24, 2023, at 04:05, Arnaud Loonstra  wrote:

Seems a trivial problem. Have you created the PR already?

On 22/10/2023 10:04, Axel R. wrote:
Hi, I'm trying to submit a PR, but the Linux builds fail. I added a 
new include\zmq_sal.h next to include\zmq.h and #included it as 
"zmq_sal.h" from zmq.h, which builds locally on Windows as well as 
on Github. However, the Linux builds fails 
("../../src/../include/zmq.h:34:10: fatal error: zmq_sal.h: No such 
file or directory") I tried  #include  to no avail. Any 
idea? How was zmq_utils.h included?


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Linux build help?

2023-10-24 Thread Arnaud Loonstra

Seems a trivial problem. Have you created the PR already?

On 22/10/2023 10:04, Axel R. wrote:
Hi, I'm trying to submit a PR, but the Linux builds fail. I added a 
new include\zmq_sal.h next to include\zmq.h and #included it as 
"zmq_sal.h" from zmq.h, which builds locally on Windows as well as on 
Github. However, the Linux builds fails 
("../../src/../include/zmq.h:34:10: fatal error: zmq_sal.h: No such 
file or directory") I tried  #include  to no avail. Any 
idea? How was zmq_utils.h included?


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] TIPC support broken ???

2023-10-05 Thread Arnaud Loonstra
Is there anything you could contribute to the documentation which would 
have helped you?



Rg,


Arnaud



On 26/03/2023 19:35, joec infoark.com wrote:
Well...spent a bit more time screwing around with it...and voila..I 
got it working!


Very happy about this, but not exactly sure why I had an issue...I 
started and stopped TIPC several times,,,each trying different 
addressing.


Eventually, I dropped back to the defaults suggessted in the programs 
themselves (which I had previously tried and failed)...and it worked.


I had done some more research on the mailing lists about TIPC...still 
trying to grasp how the domain (@n.n.n) is used for though.



*From:* joec infoark.com
*Sent:* Sunday, March 26, 2023 11:06 AM
*To:* zeromq-dev@lists.zeromq.org 
*Subject:* TIPC support broken ???
Am new to zeromq and am evaluating using it for a new upcoming TIPC 
project.  I built the samples from 
https://gist.github.com/hintjens/7335589, then set it up accordingly.  
Screwed around with it for a several hours but could never get it to work.


After reviewing the zmq TIPC logic, it seems since the TIPC 2 changes 
several years ago, it appears that TIPC features & addressing have 
changed considerably.  And despite the TIPC maintainers efforts to 
provide backward compatibility, zmq likely needs some changes to use 
the current version of TIPC today?


I'd like to be wrong about this, and hope someone might be able to 
confirm or deny the above?


Does anyone know of anyone currently using ZeroMQ w/TIPC transport?

Thanks in advance.


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] FOSDEM community meet-up

2023-10-05 Thread Arnaud Loonstra
We used to have meetings at FOSDEM every year. I think due to the 
pandemic we kind of lost that rhythm. I'm hoping to attend FOSDEM again 
this year so I'm up for a hackathon like we used to. I think Benjamin 
knew some nice sites we could hang.


Rg,

Arnaud

On 17/05/2023 17:36, Mathieu Soum via zeromq-dev wrote:

Greetings all,


I take advantage of the regain in life of the mailing list to ask 
about the next community meetup.
We (our company) joined the ZeroMQ family recently with the ingescape 
project (https://github.com/zeromq/ingescape) but we are using libzmq, 
czmq and zyre for some years now.


So we were wondering if there are any plans of a community meet-up at 
the next FOSDEM event on February next year.

Could be fun!

Cheers,

Mathieu
˻


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] zmq_poll returns -1 ( Context has been shut down) when polling 2 sockets

2023-07-04 Thread Arnaud Loonstra
I'm not sure but skimming your code you are mixing czmq sockets and zmq 
poll method. If you want to use the zmp_poll method you can use 
zsock_resolve on the czmq sockets


//  Probe the supplied reference. If it looks like a zsock_t instance, 
return

//  the underlying libzmq socket handle; else if it looks like a file
//  descriptor, return NULL; else if it looks like a libzmq socket handle,
//  return the supplied value. Takes a polymorphic socket reference.
CZMQ_EXPORT void *
zsock_resolve (void *self);

Otherwise use the zpoller czmq class instead of zmq_poll

Rg,

Arnaud

On 04-07-2023 11:26, Chandrasekhar Nunna wrote:

hi all,
i am using zactor and in the call back i receive a pipe socket.
i create a router socket and polling this sockets for messages.
it is not working and giving -1 result as return value of zmq_poll;
what could be the problem?
void
echo_actor (zsock_t *pipe, void *args)
{
     // need to implement...?
     printf("thread id : %lu", GetCurrentThreadId());
     server_t* self = server_new(pipe);
     zmq_pollitem_t items[] =
     {
         { self->pipe, 0, ZMQ_POLLIN, 0 },
         { self->router, 0, ZMQ_POLLIN, 0 }
     };
     self->monitor_at = zclock_time() + self->monitor;
     while (!self->stopped && !zctx_interrupted)
     {
         //  Calculate tickless timer, up to interval seconds
         uint64_t tickless = zclock_time() + self->monitor;
         uint64_t diff = (tickless - zclock_time()) * ZMQ_POLL_MSEC;
         //  Poll until at most next timer event
         int rc = zmq_poll(items, 2, diff );
         if (rc == -1)
         {
             break;              //  Context has been shut down
         }

         //  Process incoming message from either socket
         if (items[0].revents & ZMQ_POLLIN)
             server_control_message(self);

         if (items[1].revents & ZMQ_POLLIN)
             server_client_message(self);

         //  If clock went past timeout, then monitor server
         if (zclock_time() >= self->monitor_at)
         {
             printf("clock went past timeout, need to monitor the server");
         }
     }
     server_destroy();
}

int main()
{
     zactor_t *actor = zactor_new (echo_actor, "Hello, World");
     assert (actor);
     zstr_sendx (actor, "ECHO", "This is a string", NULL);
     char *string = zstr_recv (actor);
     fprintf(stdout,"%s\n",string);
     assert (streq (string, "This is a string"));
     free (string);
     zactor_destroy ();
}



___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Relicensing completion and feature removal, need clean-room reimplementations of zmq_proxy_steerable() and ZMQ_RECONNECT_IVL_MAX

2023-06-09 Thread Arnaud Loonstra

Nice, this has indeed been a long endeavor!

Rg,

Arnaud

On 05-06-2023 13:49, Luca Boccassi wrote:

Hi,

As you might or might not be aware, we have been working hard for years
to complete the libzmq relicensing effort that Pieter started long ago,
from LGPL3+exceptions to standard MPL2:

https://github.com/zeromq/libzmq/issues/2376

After a lot of work, we are down to only 3 grants missing, covering the
following:

- tweetnacl integration as alternative to libsodium (relicensing
NACKed)
- zmq_proxy_steerable() (no answer)
- ZMQ_RECONNECT_IVL_MAX (no answer)

We have been waiting for years, with many requests without responses
for the latter two, and it doesn't make sense to wait anymore.

So with this PR the above functionality will simply be removed:

https://github.com/zeromq/libzmq/pull/4554

I will merge it later today.

Tweetnacl is really not a problem, it was always intended as a local-
only thing to facilitate zmq_curve development, which is long done. The
only supported production encryption implementation is libsodium, which
is available everywhere, so I do not intend to put tweetnacl
integration back. If anybody was using curve+tweetnacl in a production
setting, they were doing something _very_ wrong and need to stop asap
anyway. It's a footgun and it's best to be rid of it.

The other two are more problematic, as they are public APIs. The PR
changes them to be empty stubs that return EOPNOTSUPP (so that ABI
doesn't change). But I will make at least an attempt to get a
reimplementation so:

If you are able to, and you have NEVER LOOKED AT THE PREVIOUS
IMPLEMENTATIONS (I will require you to state this explicitly in the
commit messages), please consider helping out and reimplementing these
two APIs, based solely on the public documentation:

http://api.zeromq.org/4-3:zmq-proxy-steerable
http://api.zeromq.org/4-3:zmq-setsockopt#:~:text=connection%2Doriented%20transports-,ZMQ_RECONNECT_IVL_MAX,-%3A%20Set%20maximum%20reconnection

I cannot stress this enough, it must be a clean-room reimplementation
so no prior knowledge of the previous implementation details nor
looking at the previos implementation is allowed (hence why I cannot do
it myself).

If you are able to help, please speak up. These are not difficult to
add, especially the socket option should be very straightforward. I
will of course be able to review and provide guidance.

After merging the above PR I will complete the relicensing shortly
after, taking advantage of the switch to also use the standard SPDX
format in source files. The relicense grants will be moved to:
https://github.com/rlenferink/libzmq-relicense
for archival.


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] Infinite loop while creating udp socket with invalid url

2023-02-01 Thread Arnaud Loonstra

Hi all,

Just for some more exposure I need some feedback on an error I'm running 
into with dgram sockets.


Issue here: https://github.com/zeromq/libzmq/issues/4504

Basically an url with a port <1024 doesn't return an error (permission 
denied) but results in a infinite loop trying to create the socket in 
the IO thread.


This doesn't happen with a TCP socket.

I traced it down to the getsockopt call not retrieving any error while 
errno is 13.


Anybody experience with this?

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] RFC citation format

2022-12-19 Thread Arnaud Loonstra

Can't you us the full URL or am I missing something here?

Suggestions are welcomed!

The site collects more then libzmq. It's not libzmq specific.

Rg,

Arnaud

On 15-12-2022 18:04, Justus Ranvier wrote:
The specifications on https://rfc.zeromq.org/ internally refer to 
themselves using only the domain-specific index number (e.g. 27/ZAP)



Is there a canonical citation format defined which a document in a 
different project with its own identification scheme could use to refer 
to ZeroMQ specifications?



As an alternate question, I noticed that the description on the site 
itself is pretty open ended stating, "We collect specifications for 
APIs, file formats, wire protocols, and processes" even though unless I 
missed something the only specifications present are the ones 
implemented by libzmq.



Was that site intended to be a general collection point for 
ZeroMQ-related specifications? Is that the best place to publish the 
specification for a ZeroMQ-based wire protocols that won't be 
implemented by libzmq itself?

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Free security help from Google and Open Source Technology Improvement Fund, Inc

2022-11-16 Thread Arnaud Loonstra
  participate in the engagement to show
our gratitude for your time and efforts.

I'd be happy to set up a quick
introductory call with anyone interested
in learning more.

Thank you and have a great day!
Amir

On Tue, Oct 11, 2022 at 10:05 PM Luca
Boccassi mailto:luca.bocca...@gmail.com>> wrote:

Hi,

What kind of support are you able to
provide?

On Tue, 11 Oct 2022 at 14:30, Amir
Montazery mailto:a...@ostif.org>> wrote:

Yes, I meant zeromq. Thank you
Arnaud! That is my mistake.

That’s great news, we have teams
ready to help. Would you be a
good person to coordinate that
with? If anyone else comes to
mind to include please let me know!

I would be happy to set up a
quick call to meet and discuss
how we can best be of service to
the zeromq project.

Thank you,
Amir

    On Tue, Oct 11, 2022 at 1:22 PM
Arnaud Loonstra
mailto:arn...@sphaero.org>> wrote:

Are you sure you are on the
right list? This the zeromq
list not dnsmasq.

We'd appreciate any help for
sure!

Rg,

Arnaud

On 07-10-2022 21:46, Amir
Montazery wrote:
 > Hello dnsmasq community!
OSTIF would like to help
improve your security
 > posture!
 >
 > I’m Amir from Open Source
Technology Improvement Fund,
Inc. OSTIF
 > <https://ostif.org/
<https://ostif.org/>> is a
nonprofit solely dedicated
to helping open
 > source projects improve
their security for free.
 >
 > We are working with a
team of Google engineers and
security experts to
 > help important open
source projects like
dnsmasq. This includes helping
 > improve testing,
reviewing code, implementing
more security tools, and
 > improving supply chain
security.
 >
 > Additionally, we
understand the time
constraints that open source
 > contributors have, and
would like to compensate
contributors for their
 > time working with us.
 >
 > We would love to work
with you! Please let me kno

Re: [zeromq-dev] Adding new zmq_getsockopt() to retrieve number of subscriptions from XPUB socket

2022-11-15 Thread Arnaud Loonstra

On 15-11-2022 15:57, Francesco wrote:

Hi zeromq team,
For "observability" / debugging I think it would be really really
useful to be able to retrieve the number of subscriptions recorded by
the 'mtrie_t' object inside a (X)PUB socket.

Would you accept a PR adding such option?

Thanks,
Francesco


Isn't that possible through the socket monitor?

http://api.zeromq.org/4-1:zmq-socket-monitor

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Free security help from Google and Open Source Technology Improvement Fund, Inc

2022-10-11 Thread Arnaud Loonstra

Are you sure you are on the right list? This the zeromq list not dnsmasq.

We'd appreciate any help for sure!

Rg,

Arnaud

On 07-10-2022 21:46, Amir Montazery wrote:
Hello dnsmasq community! OSTIF would like to help improve your security 
posture!


I’m Amir from Open Source Technology Improvement Fund, Inc. OSTIF 
 is a nonprofit solely dedicated to helping open 
source projects improve their security for free.


We are working with a team of Google engineers and security experts to 
help important open source projects like dnsmasq. This includes helping 
improve testing, reviewing code, implementing more security tools, and 
improving supply chain security.


Additionally, we understand the time constraints that open source 
contributors have, and would like to compensate contributors for their 
time working with us.


We would love to work with you! Please let me know who we should be 
talking to and how we can help!


Thank you in advance for your consideration!

Best,

Amir


--
*Amir Montazery*
Managing Director
Open Source Technology Improvement Fund
https://ostif.org/ 
https://calendly.com/ostif 


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] Multiple binds on DGRAM socket issue

2022-10-05 Thread Arnaud Loonstra

Hi all,

I'm trying to trace a bug when I create multiple binds to a DGRAM 
socket. The last bind never works. The second UDP socket gets created 
but is gone almost instantly just after.


It's reported here: https://github.com/zeromq/libzmq/issues/4434

I might need some pointers to trace what happens in the background 
thread managing the sockets.


Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] clustering and web client recommendation

2022-06-26 Thread Arnaud Loonstra

You could also have a look at https://github.com/zeromq/dafka

On 26-06-2022 12:34, Nikola Radovanovic wrote:

Thank you.
I would like to make a custom-tailor message-broker, since it has to sit 
in between clients (console and web) with some load-balancing and LDAP 
backend. We already have some glimpse of it, but using cherrypy, which 
does not seem efficient enough. Also, for some pet-project I am working 
on, I would like to have something similar: REST-like service acting as 
a backend for javascript frontend.


Kindest regards



On Sat, Jun 25, 2022 at 10:08 PM Jim Melton > wrote:


Bear in mind that ZMQ is a message broker _toolkit_, not a
full-fledged message broker. You can certainly implement these
feature, but it isn’t supported out of the box. Unless your interest
is in developing the middleware, you may want to look at a
full-featured broker like Kafka, RabbitMQ or the like.
--
Jim Melton





On Jun 24, 2022, at 2:56 AM, Nikola Radovanovic
mailto:nikola...@gmail.com>> wrote:

Hi all,
a couple of questions, all related to a similar topic: I am
considering 0MQ as pub-sub message broker in an environment with a
small number of publishers and a large number of subscribers.
Publishers will be mainly processes like configure system, some
system events, etc. subscribers will be mainly web-clients but
also BASH console apps.

 1. Now, what I am first interested in is message persistence.
Say, one node is publishing messages m1,m2,...mN. If something
happens to that node, I would like that non-published messages
are pulled from the DB and continue from that. Guess this is
not hard to achieve.
 2. Next, what about clustering: say want 2,3 or more nodes to
form a cluster and each one acts as proxy for all its
publishers/subscribers. Is there already a solution based on
0MQ for this that is production ready?
 3. What is the recommended way to connect web clients?

Many thanks
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org 
https://lists.zeromq.org/mailman/listinfo/zeromq-dev



___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org 
https://lists.zeromq.org/mailman/listinfo/zeromq-dev



___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Imitating TCP Listener/Connecter for NORM

2022-03-25 Thread Arnaud Loonstra
On 23-03-2022 19:09, Bowers, Caleb Z CIV USN NRL (5522) Washington DC 
(USA) via zeromq-dev wrote:

I am interested in imitating the TCP listener/connecter setup for the multicast 
protocol NORM. There is a mode of NORM that enables multicast out and unicast 
backchannels. E.g., a hub and spoke topology where the hub multicasts to the 
nodes and those nodes can unicast back to the hub along the spokes.

This being the case, I think there is reasonable chance of implementing 
something similar to the TCP/IPC, etc listener/connecter patterns.

The code for these is not particularly well documented and I am not sure 
where/if an API is located. Are there any references I can consult in 
undertaking this?

Thanks,

Caleb Bowers


I'm not sure I follow you on this. Do you want to build this hub-spoke 
topology using zeromq sockets or do you want to build this using a NORM 
implementation, aka a new or enhanced transport?


Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] Fuchsia FIDL

2022-03-19 Thread Arnaud Loonstra
Reading this feels very much zeromq/zproject/zproto/gsl related

https://fuchsia.dev/fuchsia-src/concepts/fidl/overview

Rg,

Arnaud
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Use IPC socket under win32 service

2022-03-18 Thread Arnaud Loonstra

That code also doesn't work for me

I'm not sure you can use sockets that way. You should use a sending and 
a receiving socket.


I've changed it to:

import zmq, json
context = zmq.Context()
bsock = context.socket(zmq.REP)
bsock.bind('ipc:///tmp/mm')
socket = context.socket(zmq.REQ)
socket.connect('ipc:///tmp/mm')
socket.send_json(json.dumps(["BOO BOO - 1", 123]))
message = bsock.recv_json()
print(message)

This works for me but I'm on Linux...


On 18-03-2022 11:04, momc...@bojinov.info wrote:

Here:
https://github.com/bozhinov/cache-poc/blob/88f3b190711dcd632b2435f2b4e315bd3b16e8aa/client_1.py#L8

Message was sent, but was never received on by the service and then the client 
gets stuck waiting for response.


-Original Message-
From: zeromq-dev  On Behalf Of Arnaud 
Loonstra
Sent: Friday, March 18, 2022 11:40 AM
To: zeromq-dev@lists.zeromq.org
Subject: Re: [zeromq-dev] Use IPC socket under win32 service

Gets stuck where?

On 18-03-2022 10:23, momc...@bojinov.info wrote:

Hello Arnaud,

The issue is mine, yes.
I provided PoC in the initial e-mail:
https://github.com/bozhinov/cache-poc

Service and app run under the same user account in both scenarios

The python wrapper does not provide output/throws nothing Just gets
stuck

Momchil

-Original Message-
From: zeromq-dev  On Behalf Of
Arnaud Loonstra
Sent: Friday, March 18, 2022 10:54 AM
To: zeromq-dev@lists.zeromq.org
Subject: Re: [zeromq-dev] Use IPC socket under win32 service

Also; try to come up with some reproducible code that illustrates the problem.

Is this yours btw? https://github.com/zeromq/libzmq/issues/4358

I guess it is. Try to see if you can get any errors out of your code.
I'm not familiar with the Python wrapper but usually the recv and send calls 
return something. If your code freezes, make sure you know where.

Would be helpful to test this code directly against libzmq instead of through 
python.

Rg,

Arnaud

On 17-03-2022 14:18, momc...@bojinov.info wrote:

An yet I don’t feel like a winner

Really need some help here

Momchil

*From:* zeromq-dev  *On Behalf
Of *Joerg Schneider-Simon
*Sent:* Tuesday, March 15, 2022 11:23 AM
*To:* zeromq-dev@lists.zeromq.org
*Subject:* Re: [zeromq-dev] Use IPC socket under win32 service

Hi Momchil,

Windows does not provide IPC sockets.
you'll have to stick to TCP sockets

cheers,

Joerg

Am 15.03.22 um 09:58 schrieb momc...@bojinov.info
<mailto:momc...@bojinov.info>:

  Hello,

  I have a client server poc code that runs ok in user mode
  it uses zmq.REQ context and an IPC socket to send over json and
  receive back json

  problem is when I wrap the server part in win32service code
  both service and client app run under the same user but I still fail
  to send data over
  works just fine if I switch to TCP socket

  PoC code:

  https://github.com/bozhinov/cache-poc
  <https://github.com/bozhinov/cache-poc>

  Environment:

  libzmq version: pyzmq 14.1.1, libzmq 4.3.4

  OS: Windows Server 2022

  Python 3.10.2 x64

  Is this even supposed to work?

  Momchil



  ___

  zeromq-dev mailing list

  zeromq-dev@lists.zeromq.org
<mailto:zeromq-dev@lists.zeromq.org>

  https://lists.zeromq.org/mailman/listinfo/zeromq-dev
<https://lists.zeromq.org/mailman/listinfo/zeromq-dev>

--

*Jörg Schneider-Simon*
Chief Technology Officer & Co-Founder

bowbridge Software GmbH
Donnersbergerstrasse 22A
D-80634 Munich / GERMANY



https://www.bowbridge.net <https://www.bowbridge.net>
Tel.: +49 - 6227 - 698 99 - 50
Fax: +49 - 6227 - 698 99 - 59


Geschäftsführerin: Andrea Simon
Amtsgericht Mannheim - HRB 719011

*Wichtiger Hinweis:
*Diese Information ist für den Gebrauch durch die Person oder die
Firma/Organisation bestimmt, die in der Empfängeradresse benannt sind
und unterliegt u. U. dem Berufsgeheimnis, dem Schutz von
Arbeitsergebnissen oder anderweitigem rechtlichen Schutz.
Wenn Sie nicht der angegebene Empfänger sind, nehmen Sie bitte zur
Kenntnis, dass Weitergabe, Kopieren, Verteilung oder Nutzung des
Inhalts dieser eMail-Übertragung unzulässig ist. Falls Sie diese
eMail irrtümlich erhalten haben, benachrichtigen Sie den Absender
bitte unverzüglich telefonisch oder durch eine eMail.

*Important Note:*
This e-mail may contain trade secrets or privileged, undisclosed or
confidential information or otherwise protected by work product
immunity or other legal rules. If you have received this e-mail in
error, you are hereby notified that any review, copying or
distribution of it is strictly prohibited.


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


__

Re: [zeromq-dev] Use IPC socket under win32 service

2022-03-18 Thread Arnaud Loonstra

Gets stuck where?

On 18-03-2022 10:23, momc...@bojinov.info wrote:

Hello Arnaud,

The issue is mine, yes.
I provided PoC in the initial e-mail:
https://github.com/bozhinov/cache-poc

Service and app run under the same user account in both scenarios

The python wrapper does not provide output/throws nothing
Just gets stuck

Momchil

-Original Message-
From: zeromq-dev  On Behalf Of Arnaud 
Loonstra
Sent: Friday, March 18, 2022 10:54 AM
To: zeromq-dev@lists.zeromq.org
Subject: Re: [zeromq-dev] Use IPC socket under win32 service

Also; try to come up with some reproducible code that illustrates the problem.

Is this yours btw? https://github.com/zeromq/libzmq/issues/4358

I guess it is. Try to see if you can get any errors out of your code.
I'm not familiar with the Python wrapper but usually the recv and send calls 
return something. If your code freezes, make sure you know where.

Would be helpful to test this code directly against libzmq instead of through 
python.

Rg,

Arnaud

On 17-03-2022 14:18, momc...@bojinov.info wrote:

An yet I don’t feel like a winner

Really need some help here

Momchil

*From:* zeromq-dev  *On Behalf Of
*Joerg Schneider-Simon
*Sent:* Tuesday, March 15, 2022 11:23 AM
*To:* zeromq-dev@lists.zeromq.org
*Subject:* Re: [zeromq-dev] Use IPC socket under win32 service

Hi Momchil,

Windows does not provide IPC sockets.
you'll have to stick to TCP sockets

cheers,

Joerg

Am 15.03.22 um 09:58 schrieb momc...@bojinov.info
<mailto:momc...@bojinov.info>:

 Hello,

 I have a client server poc code that runs ok in user mode
 it uses zmq.REQ context and an IPC socket to send over json and
 receive back json

 problem is when I wrap the server part in win32service code
 both service and client app run under the same user but I still fail
 to send data over
 works just fine if I switch to TCP socket

 PoC code:

 https://github.com/bozhinov/cache-poc
 <https://github.com/bozhinov/cache-poc>

 Environment:

 libzmq version: pyzmq 14.1.1, libzmq 4.3.4

 OS: Windows Server 2022

 Python 3.10.2 x64

 Is this even supposed to work?

 Momchil



 ___

 zeromq-dev mailing list

 zeromq-dev@lists.zeromq.org  <mailto:zeromq-dev@lists.zeromq.org>

 https://lists.zeromq.org/mailman/listinfo/zeromq-dev
<https://lists.zeromq.org/mailman/listinfo/zeromq-dev>

--

*Jörg Schneider-Simon*
Chief Technology Officer & Co-Founder

bowbridge Software GmbH
Donnersbergerstrasse 22A
D-80634 Munich / GERMANY



https://www.bowbridge.net <https://www.bowbridge.net>
Tel.: +49 - 6227 - 698 99 - 50
Fax: +49 - 6227 - 698 99 - 59


Geschäftsführerin: Andrea Simon
Amtsgericht Mannheim - HRB 719011

*Wichtiger Hinweis:
*Diese Information ist für den Gebrauch durch die Person oder die
Firma/Organisation bestimmt, die in der Empfängeradresse benannt sind
und unterliegt u. U. dem Berufsgeheimnis, dem Schutz von
Arbeitsergebnissen oder anderweitigem rechtlichen Schutz.
Wenn Sie nicht der angegebene Empfänger sind, nehmen Sie bitte zur
Kenntnis, dass Weitergabe, Kopieren, Verteilung oder Nutzung des
Inhalts dieser eMail-Übertragung unzulässig ist. Falls Sie diese eMail
irrtümlich erhalten haben, benachrichtigen Sie den Absender bitte
unverzüglich telefonisch oder durch eine eMail.

*Important Note:*
This e-mail may contain trade secrets or privileged, undisclosed or
confidential information or otherwise protected by work product
immunity or other legal rules. If you have received this e-mail in
error, you are hereby notified that any review, copying or
distribution of it is strictly prohibited.


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Use IPC socket under win32 service

2022-03-18 Thread Arnaud Loonstra
Also; try to come up with some reproducible code that illustrates the 
problem.


Is this yours btw? https://github.com/zeromq/libzmq/issues/4358

I guess it is. Try to see if you can get any errors out of your code.
I'm not familiar with the Python wrapper but usually the recv and send 
calls return something. If your code freezes, make sure you know where.


Would be helpful to test this code directly against libzmq instead of 
through python.


Rg,

Arnaud

On 17-03-2022 14:18, momc...@bojinov.info wrote:

An yet I don’t feel like a winner

Really need some help here

Momchil

*From:* zeromq-dev  *On Behalf Of 
*Joerg Schneider-Simon

*Sent:* Tuesday, March 15, 2022 11:23 AM
*To:* zeromq-dev@lists.zeromq.org
*Subject:* Re: [zeromq-dev] Use IPC socket under win32 service

Hi Momchil,

Windows does not provide IPC sockets.
you'll have to stick to TCP sockets

cheers,

Joerg

Am 15.03.22 um 09:58 schrieb momc...@bojinov.info 
:


Hello,

I have a client server poc code that runs ok in user mode
it uses zmq.REQ context and an IPC socket to send over json and
receive back json

problem is when I wrap the server part in win32service code
both service and client app run under the same user but I still fail
to send data over
works just fine if I switch to TCP socket

PoC code:

https://github.com/bozhinov/cache-poc


Environment:

libzmq version: pyzmq 14.1.1, libzmq 4.3.4

OS: Windows Server 2022

Python 3.10.2 x64

Is this even supposed to work?

Momchil



___

zeromq-dev mailing list

zeromq-dev@lists.zeromq.org  

https://lists.zeromq.org/mailman/listinfo/zeromq-dev  


--

*Jörg Schneider-Simon*
Chief Technology Officer & Co-Founder

bowbridge Software GmbH
Donnersbergerstrasse 22A
D-80634 Munich / GERMANY



https://www.bowbridge.net 
Tel.: +49 - 6227 - 698 99 - 50
Fax: +49 - 6227 - 698 99 - 59


Geschäftsführerin: Andrea Simon
Amtsgericht Mannheim - HRB 719011

*Wichtiger Hinweis:
*Diese Information ist für den Gebrauch durch die Person oder die 
Firma/Organisation

bestimmt, die in der Empfängeradresse benannt sind und unterliegt u. U. dem
Berufsgeheimnis, dem Schutz von Arbeitsergebnissen oder anderweitigem 
rechtlichen Schutz.

Wenn Sie nicht der angegebene Empfänger sind, nehmen Sie
bitte zur Kenntnis, dass Weitergabe, Kopieren, Verteilung oder Nutzung des
Inhalts dieser eMail-Übertragung unzulässig ist. Falls Sie diese eMail
irrtümlich erhalten haben, benachrichtigen Sie den Absender bitte 
unverzüglich

telefonisch oder durch eine eMail.

*Important Note:*
This e-mail may contain trade secrets or privileged, undisclosed or 
confidential

information or otherwise protected by work product immunity or other legal
rules. If you have received this e-mail in error, you are hereby 
notified that

any review, copying or distribution of it is strictly prohibited.


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Use IPC socket under win32 service

2022-03-18 Thread Arnaud Loonstra

You said it was working in a regular session but not as a service, right?

Seems like a permission issue to me but I'm no Windows expert.

Rg,

Arnaud


On 17-03-2022 14:18, momc...@bojinov.info wrote:

An yet I don’t feel like a winner

Really need some help here

Momchil

*From:* zeromq-dev  *On Behalf Of 
*Joerg Schneider-Simon

*Sent:* Tuesday, March 15, 2022 11:23 AM
*To:* zeromq-dev@lists.zeromq.org
*Subject:* Re: [zeromq-dev] Use IPC socket under win32 service

Hi Momchil,

Windows does not provide IPC sockets.
you'll have to stick to TCP sockets

cheers,

Joerg

Am 15.03.22 um 09:58 schrieb momc...@bojinov.info 
:


Hello,

I have a client server poc code that runs ok in user mode
it uses zmq.REQ context and an IPC socket to send over json and
receive back json

problem is when I wrap the server part in win32service code
both service and client app run under the same user but I still fail
to send data over
works just fine if I switch to TCP socket

PoC code:

https://github.com/bozhinov/cache-poc


Environment:

libzmq version: pyzmq 14.1.1, libzmq 4.3.4

OS: Windows Server 2022

Python 3.10.2 x64

Is this even supposed to work?

Momchil



___

zeromq-dev mailing list

zeromq-dev@lists.zeromq.org  

https://lists.zeromq.org/mailman/listinfo/zeromq-dev  


--

*Jörg Schneider-Simon*
Chief Technology Officer & Co-Founder

bowbridge Software GmbH
Donnersbergerstrasse 22A
D-80634 Munich / GERMANY



https://www.bowbridge.net 
Tel.: +49 - 6227 - 698 99 - 50
Fax: +49 - 6227 - 698 99 - 59


Geschäftsführerin: Andrea Simon
Amtsgericht Mannheim - HRB 719011

*Wichtiger Hinweis:
*Diese Information ist für den Gebrauch durch die Person oder die 
Firma/Organisation

bestimmt, die in der Empfängeradresse benannt sind und unterliegt u. U. dem
Berufsgeheimnis, dem Schutz von Arbeitsergebnissen oder anderweitigem 
rechtlichen Schutz.

Wenn Sie nicht der angegebene Empfänger sind, nehmen Sie
bitte zur Kenntnis, dass Weitergabe, Kopieren, Verteilung oder Nutzung des
Inhalts dieser eMail-Übertragung unzulässig ist. Falls Sie diese eMail
irrtümlich erhalten haben, benachrichtigen Sie den Absender bitte 
unverzüglich

telefonisch oder durch eine eMail.

*Important Note:*
This e-mail may contain trade secrets or privileged, undisclosed or 
confidential

information or otherwise protected by work product immunity or other legal
rules. If you have received this e-mail in error, you are hereby 
notified that

any review, copying or distribution of it is strictly prohibited.


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Use IPC socket under win32 service

2022-03-15 Thread Arnaud Loonstra
Yes IPC support on Windows has been added since Windows started 
supporting AF_UNIX sockets.


On 15-03-2022 12:00, momc...@bojinov.info wrote:

Hello,

But:

https://github.com/zeromq/libzmq/releases/tag/v4.3.3 



(added support for IPC on Windows 10 via AF_UNIX)

Tested it and works OK while under interactive session.

It is only under Windows service that I run into trouble.

Momchil

*From:* zeromq-dev  *On Behalf Of 
*Joerg Schneider-Simon

*Sent:* Tuesday, March 15, 2022 11:23 AM
*To:* zeromq-dev@lists.zeromq.org
*Subject:* Re: [zeromq-dev] Use IPC socket under win32 service

Hi Momchil,

Windows does not provide IPC sockets.
you'll have to stick to TCP sockets

cheers,

Joerg

Am 15.03.22 um 09:58 schrieb momc...@bojinov.info 
:


Hello,

I have a client server poc code that runs ok in user mode
it uses zmq.REQ context and an IPC socket to send over json and
receive back json

problem is when I wrap the server part in win32service code
both service and client app run under the same user but I still fail
to send data over
works just fine if I switch to TCP socket

PoC code:

https://github.com/bozhinov/cache-poc


Environment:

libzmq version: pyzmq 14.1.1, libzmq 4.3.4

OS: Windows Server 2022

Python 3.10.2 x64

Is this even supposed to work?

Momchil



___

zeromq-dev mailing list

zeromq-dev@lists.zeromq.org  

https://lists.zeromq.org/mailman/listinfo/zeromq-dev  


--

*Jörg Schneider-Simon*
Chief Technology Officer & Co-Founder

bowbridge Software GmbH
Donnersbergerstrasse 22A
D-80634 Munich / GERMANY



https://www.bowbridge.net 
Tel.: +49 - 6227 - 698 99 - 50
Fax: +49 - 6227 - 698 99 - 59


Geschäftsführerin: Andrea Simon
Amtsgericht Mannheim - HRB 719011

*Wichtiger Hinweis:
*Diese Information ist für den Gebrauch durch die Person oder die 
Firma/Organisation

bestimmt, die in der Empfängeradresse benannt sind und unterliegt u. U. dem
Berufsgeheimnis, dem Schutz von Arbeitsergebnissen oder anderweitigem 
rechtlichen Schutz.

Wenn Sie nicht der angegebene Empfänger sind, nehmen Sie
bitte zur Kenntnis, dass Weitergabe, Kopieren, Verteilung oder Nutzung des
Inhalts dieser eMail-Übertragung unzulässig ist. Falls Sie diese eMail
irrtümlich erhalten haben, benachrichtigen Sie den Absender bitte 
unverzüglich

telefonisch oder durch eine eMail.

*Important Note:*
This e-mail may contain trade secrets or privileged, undisclosed or 
confidential

information or otherwise protected by work product immunity or other legal
rules. If you have received this e-mail in error, you are hereby 
notified that

any review, copying or distribution of it is strictly prohibited.


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Install ZeroMQ on Windows

2022-02-22 Thread Arnaud Loonstra

On 19-02-2022 20:19, Constandinos Demetriou wrote:

Hi all,

I would like to use zmq4 (https://github.com/pebbe/zmq4) in Go 
Programming Language on a Windows system. This need to have ZeroMQ 
(libzmq) installed (https://zeromq.org/download/). Unfortunately, I can 
not find a way to install ZeroMQ (libzmq) on Windows. Can anyone help me?


Kind Regards,
Constandinos Demetriou




The documentation refers to using vcpkg. Doesn't that help you?
Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] error: redundant redeclaration of zXXX

2022-02-08 Thread Arnaud Loonstra

I've never had this. Then again I don't use automake.

If this is really an issue, create an issue for it on github. Since it 
is deprecated quite a while we could just remove it?


Rg,

Arnaud

On 08-02-2022 14:17, Gavin Henry wrote:

Hi all,

So this is just happening (cleaned up my own issue) because I use:

-Werror=redundant-decl

and it's complaining about these two for example:

https://github.com/zeromq/czmq/blob/master/include/zclock.h#L63

Fine on clang, not with gcc.

Strange!
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Donations?

2021-12-05 Thread Arnaud Loonstra

Hi mpg,

I can't comment on the hosting and other infra related costs. Perhaps 
Luca or Doron can comment on that. The best way to contribute to the 
zeromq community is to use the projects and hire developers to work on 
any issues and/or improvements.


We also really appreciate yearly meetups/hackathon with beers and food 
at FOSDEM so attending those could also be a suggestion? (as soon as 
it's possible again :S)


Rg,

Arnaud

On 02-12-2021 19:28, Michael Gerlek wrote:

We’ve been using ZeroMQ for a year now and we’re very happy with it.

We’d like to make a small donation to help continue the work. Is there a 
mechanism in place by which we can send money to help defray the costs 
of web hosting, or development, or similar? I looked on the website but 
didn’t see anything…


Thanks -

-mpg

m...@apira.com


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Linking to OBS proved libzmq debs (GH Actions)

2021-10-08 Thread Arnaud Loonstra
Nevermind, I blindly copied the repo urls not noticing I need to use the 
git-draft repos instead of git-stable.


On 07-10-2021 22:28, Arnaud Loonstra wrote:

Hey all,

The OBS proved debian repository is a full libzmq build with draft 
support, right?


I'm fiddling with Github Actions but somehow it fails to link czmq to 
the OBS provided libzmq:


usr/bin/ld: ext/czmq/libczmq.a(zframe.c.o): in function `zframe_recv':
/home/runner/work/gazebosc/gazebosc/ext/czmq/src/zframe.c:180: undefined 
reference to `zmq_msg_routing_id'
/usr/bin/ld: 
/home/runner/work/gazebosc/gazebosc/ext/czmq/src/zframe.c:185: undefined 
reference to `zmq_msg_group'

/usr/bin/ld: ext/czmq/libczmq.a(zframe.c.o): in function `zframe_send':
/home/runner/work/gazebosc/gazebosc/ext/czmq/src/zframe.c:215: undefined 
reference to `zmq_msg_set_routing_id'
/usr/bin/ld: 
/home/runner/work/gazebosc/gazebosc/ext/czmq/src/zframe.c:219: undefined 
reference to `zmq_msg_set_group'
/usr/bin/ld: 
/home/runner/work/gazebosc/gazebosc/ext/czmq/src/zframe.c:229: undefined 
reference to `zmq_msg_set_routing_id'
/usr/bin/ld: 
/home/runner/work/gazebosc/gazebosc/ext/czmq/src/zframe.c:233: undefined 
reference to `zmq_msg_set_group'
/usr/bin/ld: ext/czmq/libczmq.a(zframe.c.o): in function 
`zframe_recv_nowait':
/home/runner/work/gazebosc/gazebosc/ext/czmq/src/zframe.c:595: undefined 
reference to `zmq_msg_routing_id'

...

It seems libzmq is already installed on github runners but from the logs 
I get it is upgraded:


The following packages will be upgraded:
   libzmq5

I'm using this in the workflow yml:

     - name: add Debian Packages
   uses: myci-actions/add-deb-repo@10
   with:
     repo-name: obs
     repo: deb 
http://download.opensuse.org/repositories/network:/messaging:/zeromq:/git-stable/xUbuntu_20.04/ 
./
     keys-asc: 
https://download.opensuse.org/repositories/network:/messaging:/zeromq:/git-stable/xUbuntu_20.04/Release.key 


     install: libzmq5 libzmq3-dev


Anybody has this running already on Github Actions?

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] Linking to OBS proved libzmq debs (GH Actions)

2021-10-07 Thread Arnaud Loonstra

Hey all,

The OBS proved debian repository is a full libzmq build with draft 
support, right?


I'm fiddling with Github Actions but somehow it fails to link czmq to 
the OBS provided libzmq:


usr/bin/ld: ext/czmq/libczmq.a(zframe.c.o): in function `zframe_recv':
/home/runner/work/gazebosc/gazebosc/ext/czmq/src/zframe.c:180: undefined 
reference to `zmq_msg_routing_id'
/usr/bin/ld: 
/home/runner/work/gazebosc/gazebosc/ext/czmq/src/zframe.c:185: undefined 
reference to `zmq_msg_group'

/usr/bin/ld: ext/czmq/libczmq.a(zframe.c.o): in function `zframe_send':
/home/runner/work/gazebosc/gazebosc/ext/czmq/src/zframe.c:215: undefined 
reference to `zmq_msg_set_routing_id'
/usr/bin/ld: 
/home/runner/work/gazebosc/gazebosc/ext/czmq/src/zframe.c:219: undefined 
reference to `zmq_msg_set_group'
/usr/bin/ld: 
/home/runner/work/gazebosc/gazebosc/ext/czmq/src/zframe.c:229: undefined 
reference to `zmq_msg_set_routing_id'
/usr/bin/ld: 
/home/runner/work/gazebosc/gazebosc/ext/czmq/src/zframe.c:233: undefined 
reference to `zmq_msg_set_group'
/usr/bin/ld: ext/czmq/libczmq.a(zframe.c.o): in function 
`zframe_recv_nowait':
/home/runner/work/gazebosc/gazebosc/ext/czmq/src/zframe.c:595: undefined 
reference to `zmq_msg_routing_id'

...

It seems libzmq is already installed on github runners but from the logs 
I get it is upgraded:


The following packages will be upgraded:
  libzmq5

I'm using this in the workflow yml:

- name: add Debian Packages
  uses: myci-actions/add-deb-repo@10
  with:
repo-name: obs
repo: deb 
http://download.opensuse.org/repositories/network:/messaging:/zeromq:/git-stable/xUbuntu_20.04/ 
./
keys-asc: 
https://download.opensuse.org/repositories/network:/messaging:/zeromq:/git-stable/xUbuntu_20.04/Release.key

install: libzmq5 libzmq3-dev


Anybody has this running already on Github Actions?

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Travis out of jobs?

2021-09-24 Thread Arnaud Loonstra

On 22-09-2021 23:15, Luca Boccassi wrote:
[snip]>

I have now switched libzmq to Github Actions, since the Travis "free
credit topup" lasts about a week and then you have to manually contact
customer support and get someone to add more, which is just a waste of
my very limited time.

https://github.com/zeromq/libzmq/commit/cf8afcc4117d061d8bc

Only the release build is left, will do that soon. Zproject should be
updated next if someone wants to tackle that.


I started a gh_action branch based on the travis gsl script. It's still 
a quite simple non matrix config.


https://github.com/sphaero/zproject/blob/gh_actions/zproject_gh_actions.gsl

Not sure I'll find enough time soon to finish this quickly. The 
dependencies are a bit different and I know nothing about deploy options 
on gh actions.


Config generated example:

# Github Actions CI script
# This is a skeleton created by zproject.
# You can add hand-written code here.

name: CI

on:
  push:
branches: [ master ]
  pull_request:
branches: [ master ]

jobs:
  build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
# Prerequisite packages provided by OS distro and used "as is"

# Prerequisite packages that may be built from source or used from
# prebuilt packages of that source (usually not from an OS distro)
- name: Install libzmq3-dev
  run: sudo apt install libzmq3-dev
- name: Install libczmq-dev
  run: sudo apt install libczmq-dev

- name: autogen.sh
  run: ./autogen.sh
- name: configure
  run: ./configure
- name: make
  run: make
- name: make check
  run: make check
- name: make distcheck
  run: make distcheck


Rg,

Arnaud



___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Travis out of jobs?

2021-09-22 Thread Arnaud Loonstra
Great Luca,

I've been playing with github actions as well. I might have a look at zproject 
to generate a config.

Rg,

Arnaud

On September 22, 2021 11:15:35 PM GMT+02:00, Luca Boccassi  
wrote:
>On Sat, 2021-07-17 at 15:44 +0100, Luca Boccassi wrote:
>> On Fri, 2021-07-16 at 15:38 +0100, Luca Boccassi wrote:
>> > On Fri, 2021-07-16 at 15:48 +0200, Arnaud Loonstra wrote:
>> > > On 16-07-2021 15:37, Luca Boccassi wrote:
>> > > > On Fri, 2021-07-16 at 15:25 +0200, Arnaud Loonstra wrote:
>> > > > > Is it me or are we not running travis jobs anymore?
>> > > > > 
>> > > > > I see this in the organization dashboard:
>> > > > > 
>> > > > >    -200 available credits (purchase date: February 10, 2021)
>> > > > > 
>> > > > > You have used 205810 of 205610 credits
>> > > > > 
>> > > > > -200 available 205810 used
>> > > > > Consume paid credits for OSS
>> > > > > 
>> > > > > You can use paid credits both for build jobs run over public
>> > > > > and private
>> > > > > repositories. You can use ‘OSS only’ credits only for build
>> > > > > jobs run
>> > > > > over public repositories. If the ‘Consume paid credits for
>> > > > > OSS’ is set
>> > > > > to OFF, paid credits will not be used for build jobs run over
>> > > > > public
>> > > > > repositories. ‘OSS only credits’ are available and renewed as
>> > > > > per terms
>> > > > > of selected plan.
>> > > > > 
>> > > > > Rg,
>> > > > > 
>> > > > > Arnaud
>> > > > 
>> > > > I'll ping them again, they just added credits a few weeks ago
>> > > > 
>> > > 
>> > > How much credit do they up? It seems 10 credits is 1 minute of
>> > > build 
>> > > time, on Mac it's even 50 credits. We'll run out in no time?
>> > > 
>> > > Apparently I even hit those limits on my own repos :S
>> > 
>> > All of them, 205610, not even two weeks ago
>> 
>> They've added more now, so it should be fine again. I asked if they
>> can
>> automate this, as it's a bit of a pain to have to contact customer
>> support every other week.
>
>I have now switched libzmq to Github Actions, since the Travis "free
>credit topup" lasts about a week and then you have to manually contact
>customer support and get someone to add more, which is just a waste of
>my very limited time.
>
>https://github.com/zeromq/libzmq/commit/cf8afcc4117d061d8bc
>
>Only the release build is left, will do that soon. Zproject should be
>updated next if someone wants to tackle that.
>
>-- 
>Kind regards,
>Luca Boccassi

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] IPC on Windows 10?

2021-09-10 Thread Arnaud Loonstra

Hey Simon,

It's unclear as it's still mentioned that it's only supported if UNIX 
Domain sockets are supported:


"The inter-process transport is currently only implemented on operating 
systems that provide UNIX domain sockets."


http://api.zeromq.org/master:zmq-ipc
https://github.com/zeromq/libzmq/blob/master/doc/zmq_ipc.txt

It's probably not widely known that recent windows supports UNIX Domain 
sockets. But it's good to know it's working!


Rg,

Arnaud


On 10-09-2021 13:02, Simon Giesecke wrote:

Hi Arnaud,

in what sense is it unclear if it works? The tests work.

You need a sufficiently recent Windows 10 build and SDK that have the 
support added sometime in 2017, but that should be easily the case nowadays.


If you encounter any problems, please let me know.

Best wishes
Simon

Arnaud Loonstra mailto:arn...@sphaero.org>> schrieb 
am Fr., 10. Sept. 2021, 12:24:


I see this has been merged
https://github.com/zeromq/libzmq/pull/3717
<https://github.com/zeromq/libzmq/pull/3717>

But it's unclear if it works now?

Anybody already using this?

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org <mailto:zeromq-dev@lists.zeromq.org>
https://lists.zeromq.org/mailman/listinfo/zeromq-dev
<https://lists.zeromq.org/mailman/listinfo/zeromq-dev>


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] IPC on Windows 10?

2021-09-10 Thread Arnaud Loonstra

I see this has been merged https://github.com/zeromq/libzmq/pull/3717

But it's unclear if it works now?

Anybody already using this?

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Travis out of jobs?

2021-07-16 Thread Arnaud Loonstra

On 16-07-2021 15:37, Luca Boccassi wrote:

On Fri, 2021-07-16 at 15:25 +0200, Arnaud Loonstra wrote:

Is it me or are we not running travis jobs anymore?

I see this in the organization dashboard:

   -200 available credits (purchase date: February 10, 2021)

You have used 205810 of 205610 credits

-200 available 205810 used
Consume paid credits for OSS

You can use paid credits both for build jobs run over public and private
repositories. You can use ‘OSS only’ credits only for build jobs run
over public repositories. If the ‘Consume paid credits for OSS’ is set
to OFF, paid credits will not be used for build jobs run over public
repositories. ‘OSS only credits’ are available and renewed as per terms
of selected plan.

Rg,

Arnaud


I'll ping them again, they just added credits a few weeks ago



How much credit do they up? It seems 10 credits is 1 minute of build 
time, on Mac it's even 50 credits. We'll run out in no time?


Apparently I even hit those limits on my own repos :S
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Travis out of jobs?

2021-07-16 Thread Arnaud Loonstra

Meanwhile I'm receiving this message:

```
 [system]   system
July 16

Hey there. We see you’ve been busy reading, which is fantastic, so we’ve 
promoted you up a trust level!


We’re really glad you’re spending time with us and we’d love to know 
more about you. Take a moment to fill out your profile, or feel free to 
start a new topic.


Visit Message or reply to this email to respond to system, sphaero.

To unsubscribe from these emails, click here.
```

That's a weird approach to getting me read stuff on their site

:S

On 16-07-2021 15:33, Arnaud Loonstra wrote:

It's also giving this warning:

Builds have been temporarily disabled for public repositories due to a 
negative credit balance. Please go to the Plan page to replenish your 
credit balance or alter your Consume paid credits for OSS setting.


I can find some references which indicate projects are moving away from 
travis?


https://github.com/OpenRefine/OpenRefine/issues/3377
https://github.com/microsoft/LightGBM/issues/3519
https://community.plone.org/t/travis-ci-and-beyond/13156/6

A.

On 16-07-2021 15:25, Arnaud Loonstra wrote:

Is it me or are we not running travis jobs anymore?

I see this in the organization dashboard:

  -200 available credits (purchase date: February 10, 2021)

You have used 205810 of 205610 credits

-200 available 205810 used
Consume paid credits for OSS

You can use paid credits both for build jobs run over public and 
private repositories. You can use ‘OSS only’ credits only for build 
jobs run over public repositories. If the ‘Consume paid credits for 
OSS’ is set to OFF, paid credits will not be used for build jobs run 
over public repositories. ‘OSS only credits’ are available and renewed 
as per terms of selected plan.


Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Travis out of jobs?

2021-07-16 Thread Arnaud Loonstra

It's also giving this warning:

Builds have been temporarily disabled for public repositories due to a 
negative credit balance. Please go to the Plan page to replenish your 
credit balance or alter your Consume paid credits for OSS setting.


I can find some references which indicate projects are moving away from 
travis?


https://github.com/OpenRefine/OpenRefine/issues/3377
https://github.com/microsoft/LightGBM/issues/3519
https://community.plone.org/t/travis-ci-and-beyond/13156/6

A.

On 16-07-2021 15:25, Arnaud Loonstra wrote:

Is it me or are we not running travis jobs anymore?

I see this in the organization dashboard:

  -200 available credits (purchase date: February 10, 2021)

You have used 205810 of 205610 credits

-200 available 205810 used
Consume paid credits for OSS

You can use paid credits both for build jobs run over public and private 
repositories. You can use ‘OSS only’ credits only for build jobs run 
over public repositories. If the ‘Consume paid credits for OSS’ is set 
to OFF, paid credits will not be used for build jobs run over public 
repositories. ‘OSS only credits’ are available and renewed as per terms 
of selected plan.


Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] Travis out of jobs?

2021-07-16 Thread Arnaud Loonstra

Is it me or are we not running travis jobs anymore?

I see this in the organization dashboard:

 -200 available credits (purchase date: February 10, 2021)

You have used 205810 of 205610 credits

-200 available 205810 used
Consume paid credits for OSS

You can use paid credits both for build jobs run over public and private 
repositories. You can use ‘OSS only’ credits only for build jobs run 
over public repositories. If the ‘Consume paid credits for OSS’ is set 
to OFF, paid credits will not be used for build jobs run over public 
repositories. ‘OSS only credits’ are available and renewed as per terms 
of selected plan.


Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] What to do woth travis?

2021-05-27 Thread Arnaud Loonstra
Please be aware travis-ci.org will be shutting down by end of May 2021. 
Please consider migrating to travis-ci.com.


So probably all travis CI tests are gone in a few weeks?

What should we do? Anybody experience in migrating?

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Moving IRC channel from freenode

2021-05-21 Thread Arnaud Loonstra
I had lost track of the IRC channel after some move to slack years ago. 
Better dig up my IRC client again.


I have no preference so anything that's a preference for anyone.

Rg,

Arnaud

On 21-05-2021 08:55, Jim Melton wrote:
FWIW, I registered my Freenode nick at libra.chat in about 2 minutes. 
Not that hard

--
Jim Melton




On May 19, 2021, at 10:26 AM, Luca Boccassi > wrote:


Hi,

It looks like Freenode has been subject to an hostile takeover. We
should move away the #zeromq IRC channel from it.

https://boingboing.net/2021/05/19/freenode-irc-staff-quit-after-new-owner-seizes-control.html 



The former Freenode staff created a new domain, libera.chat - it seems
to be under heavy load and it's not possible to register nickanems
right now. There's also the pre-existing oftc.net, which for example
hosts all Debian's channels.

Any preferences between the two?

--
Kind regards,
Luca Boccassi
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev



___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] libev and ZMQ

2021-03-08 Thread Arnaud Loonstra

Hi Arun,

I'm not sure what to spot. I'm using czmq mostly and hardly ever libzmq 
directly. But I also just see libzmq code and not libev, or did I miss 
something? What you are referring to is when you are doing 
filedescriptor polling yourself without libzmq's poll methods.


Also I don't have any experience with Go. Can't advice you there.

Rg,

Arnaud

On 06-03-2021 22:49, Arun Athrey Chandrasekaran wrote:

Arnaud,
             Following up on my previous email, please see samples of my 
client and server codes attached showing how I use the ZMQ APIs. The 
endpoints are TCP-based. The client sends a message over the REQ socket 
and expects a response from the server over the SUB socket. The server 
routine gets called on socket activity and after a ZMQ poll, it responds 
according to the received message over the PUB socket. After the server 
is done with recv/send, it does a ZMQ poll (which is expected to do 
this: "/applications must retrieve the actual event state with a 
subsequent retrieval of the 'ZMQ_EVENTS' option."/ )


Thanks,
*Arun*

On Thu, Feb 25, 2021 at 12:54 PM Arun Athrey Chandrasekaran 
mailto:achan...@ncsu.edu>> wrote:


Arnaud,
             As you correctly point out,

/"The ability to read from the returned file descriptor does not
necessarily indicate that messages are available to be read from, or
can be written to, the underlying socket; applications must retrieve
the actual
event state with a subsequent retrieval of the 'ZMQ_EVENTS' option."
/

This may be causing the problem. Even after the client sends a
message and the server responds, I get one or two more calls from
libev. In the callback though, I do a ZMQ poll which comes back with
no events. My client code is in golang and my server code is in C++.
After receive and send I do a ZMQ poll in the server to take care of
this:

"applications must retrieve the actual event state with a subsequent
retrieval of the 'ZMQ_EVENTS' option"

I don't know if the client should do something after send/receive
and FWIW, I have tried a few different APIs in golang to achieve
the above but to no avail.

Thanks,
*Arun*



    On Thu, Feb 25, 2021 at 12:27 PM Arnaud Loonstra mailto:arn...@sphaero.org>> wrote:

On 25-02-2021 19:35, Arun Athrey Chandrasekaran wrote:
 > Hi all,
 >           Are there any gotchas w.r.t using libev with ZMQ? I
want to
 > use ZMQ to receive and send messages from/to another process and
 > instead of a ZMQ server in an infinite loop listening for
incoming
 > requests, I want to use libev to look for socket activity.
What I have
 > found out so far is that even when there is no real socket
activity, I
 > still get "ghost" callbacks from libev. I tried updating the
ZMQ_EVENTS
 > on both client and server sides after ZMQ recv and send but
that did not
 > help.
 >
 > Thanks,
 > *Arun*
 >

Hi Arun,

If you have some concept code it would really help. You can use
zeromq
in any event system which is able to poll on file descriptors.
There are
some caveats you have to be aware of. I'm not sure how this is
done with
the newer threadsafe sockets though.

  From

https://github.com/zeromq/libzmq/blob/2bf998f7e0aa19e89918627d386d526e4f2e25dd/doc/zmq_getsockopt.txt

<https://github.com/zeromq/libzmq/blob/2bf998f7e0aa19e89918627d386d526e4f2e25dd/doc/zmq_getsockopt.txt>"

The 'ZMQ_FD' option shall retrieve the file descriptor
associated with the
specified 'socket'. The returned file descriptor can be used to
integrate the
socket into an existing event loop; the 0MQ library shall signal
any pending
events on the socket in an _edge-triggered_ fashion by making
the file
descriptor become ready for reading.

NOTE: The ability to read from the returned file descriptor does not
necessarily indicate that messages are available to be read
from, or can be
written to, the underlying socket; applications must retrieve
the actual
event
state with a subsequent retrieval of the 'ZMQ_EVENTS' option.

NOTE: The returned file descriptor is also used internally by
the 'zmq_send'
and 'zmq_recv' functions. As the descriptor is edge triggered,
applications
must update the state of 'ZMQ_EVENTS' after each invocation of
'zmq_send'
or 'zmq_recv'.To be more explicit: after calling 'zmq_send' the
socket may
become readable (and vice versa) without triggering a read event
on the
file descriptor.

CAU

Re: [zeromq-dev] libev and ZMQ

2021-02-25 Thread Arnaud Loonstra

On 25-02-2021 19:35, Arun Athrey Chandrasekaran wrote:

Hi all,
          Are there any gotchas w.r.t using libev with ZMQ? I want to 
use ZMQ to receive and send messages from/to another process and 
instead of a ZMQ server in an infinite loop listening for incoming 
requests, I want to use libev to look for socket activity. What I have 
found out so far is that even when there is no real socket activity, I 
still get "ghost" callbacks from libev. I tried updating the ZMQ_EVENTS 
on both client and server sides after ZMQ recv and send but that did not 
help.


Thanks,
*Arun*



Hi Arun,

If you have some concept code it would really help. You can use zeromq 
in any event system which is able to poll on file descriptors. There are 
some caveats you have to be aware of. I'm not sure how this is done with 
the newer threadsafe sockets though.


From 
https://github.com/zeromq/libzmq/blob/2bf998f7e0aa19e89918627d386d526e4f2e25dd/doc/zmq_getsockopt.txt;


The 'ZMQ_FD' option shall retrieve the file descriptor associated with the
specified 'socket'. The returned file descriptor can be used to 
integrate the

socket into an existing event loop; the 0MQ library shall signal any pending
events on the socket in an _edge-triggered_ fashion by making the file
descriptor become ready for reading.

NOTE: The ability to read from the returned file descriptor does not
necessarily indicate that messages are available to be read from, or can be
written to, the underlying socket; applications must retrieve the actual 
event

state with a subsequent retrieval of the 'ZMQ_EVENTS' option.

NOTE: The returned file descriptor is also used internally by the 'zmq_send'
and 'zmq_recv' functions. As the descriptor is edge triggered, applications
must update the state of 'ZMQ_EVENTS' after each invocation of 'zmq_send'
or 'zmq_recv'.To be more explicit: after calling 'zmq_send' the socket may
become readable (and vice versa) without triggering a read event on the
file descriptor.

CAUTION: The returned file descriptor is intended for use with a 'poll' or
similar system call only. Applications must never attempt to read or 
write data

to it directly, neither should they try to close it.


Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] The Evolution of File Descriptor Monitoring in Linux

2021-02-18 Thread Arnaud Loonstra
Great ZeroMQ related talk. Makes me wonder, I know we have epoll support but 
what about io_uring?

The Evolution of File Descriptor Monitoring in Linux 
https://fosdem.org/2021/schedule/event/file_descriptor_monitoring/

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] Cmake users! please test this

2021-02-03 Thread Arnaud Loonstra

A fix for the cmake warnings when using the find_package scripts:

https://github.com/zeromq/zproject/pull/1271

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Getting started with Websockets

2021-01-22 Thread Arnaud Loonstra

Issue here: https://github.com/zeromq/czmq/issues/2158

Also related for javascript: https://github.com/zeromq/jszmq
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] Getting started with Websockets

2021-01-22 Thread Arnaud Loonstra

Hey all,

I'm currently getting started with the new websockets transport. It's 
not exposed in czmq but I managed to make it work.


However as it is websockets I'd like to get it to do something in a 
browser as well. I have this example running which works. Although I 
can't prove whether this is really websockets!


Help, tips, suggestions very welcome! I'm also going to open an issue on 
cmzq!


Rg,

Arnaud

// compile: gcc test-poll.c `pkg-config --cflags --libs libczmq`
#include "czmq.h"

int
main (int argc, char *argv [])
{
// setup sockets
zsock_t* zwss = zsock_new( ZMQ_PUSH );
assert( zwss );
//int rc = zsock_bind( zwss, "ws://127.0.0.1:1234/test" ); // 
doesn't work!

int rc = zmq_bind(zsock_resolve( zwss ), "ws://127.0.0.1:1234/test");
//int rc = zsock_bind( zwss, "tcp://127.0.0.1:1234" );
assert( rc == 0 || rc == 1234 );

zsock_t* zwsr = zsock_new( ZMQ_PULL );
assert( zwsr );
rc = zsock_connect( zwsr, "ws://127.0.0.1:1234/test");
//zsock_set_subscribe(zwsr, "");
//rc = zsock_connect( zwsr, "tcp://127.0.0.1:1234");
assert( rc == 0);

// setup poller
zpoller_t *p = zpoller_new(zwsr, NULL);
assert(p);

zsys_info("starting");
while (true)
{
///  poll receiver for 1 sec
void *which = zpoller_wait(p, 1000);
if ( which != NULL)
{
zsys_info("receiving");
assert(which == zwsr);
zmsg_t *msg = zmsg_recv( zwsr );
assert (msg);
char *message;
message = zmsg_popstr (msg);
assert (streq(message, "hello websocket"));
zsys_info("%s", message);
zstr_free ();
zmsg_destroy();
}
///  send HELLO
zsys_info("sending");
int rc  = zstr_send( zwss, "hello websocket");
assert(rc == 0);
zclock_sleep(1000);
}
zsock_destroy();
zsock_destroy();
}
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] FOSDEM event?

2021-01-13 Thread Arnaud Loonstra
This year's FOSDEM edition will be held online. Are we up for some sort 
of meeting to respect our annual event?


Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] hold zactors in a zlist(x)_t

2020-12-28 Thread Arnaud Loonstra
Seems OK to me, it's not invalid at least. What I do find puzzling is that you 
need the list to see if there are messages? You do know you can poll zactors 
using a zpoller?

Rg,

ArnaudOn Dec 28, 2020 12:43, Juergen Gnoss  wrote:
>
> I need a bit of brainstorming, so, I just pop that question in the round. 
>
>
> I've a variable number of parameters for algorithms stored in a zconfig. 
>
> On program start I need to go through that config and start an 
> algorithm-actor for each parameter-set.
>
> Since this is very dynamic, it comes to my mind holding that actors in a 
> zlist(x)_t.
> How valid is that? 
>
> I don't need to shuffle them around in the list, just add them, 
>
> identify them if there is a msg coming from them and
>
> destroy them if no longer needed. 
>
> If I implement a duplicator-, comparator- and the free-function, I should be 
> fine.
>
>
> Is that a valid way to go, or is there another suggestion.
>
>
> Thanks
>
> Ju
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] http requests

2020-12-11 Thread Arnaud Loonstra
It really depends on what you are tring to do. Libzmq supports websockets in 
draft and stream sockets could do http. If you really need http support it is 
available in czmq which is probaly what you want.

Rg,

ArnaudOn Dec 11, 2020 13:43, doa379  wrote:
>
> I was looking for a new library to service messaging requests. I also 
> want to make requests from the web. Does zeromq not support http?? 
> ___ 
> zeromq-dev mailing list 
> zeromq-dev@lists.zeromq.org 
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev 
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] detecting messages being dropped on a PUB socket?

2020-12-08 Thread Arnaud Loonstra

Hey all,

I might me missing something but is there any way of detecting messages 
being dropped due to the high watermark on a PUB socket?


It's clear how to do this is on a socket that blocks in the mute state, 
but dropping message on mute is not?


for example:

// test hwm
sock_t *push = zsock_new(ZMQ_PUB);
zsock_t *pull = zsock_new(ZMQ_SUB);
zsock_set_rcvhwm(pull, 100);
zsock_set_sndhwm(push, 100);
zsock_set_sndtimeo(push,0);
zsock_bind(push, "inproc://test");
zsock_connect(pull, "inproc://test");
zsock_set_subscribe(pull, "");
zclock_sleep(10);
int rc = 0;
int count = 0;
while( rc == 0 && count < 1) {
rc = zstr_send(push, "BOE");
count++;
}

The count will be 1 due zstr_send dropping messages but returning 0;
If we then receive the buffered messages we wil receive 20 messages 
(rcvhwm + sndhwm)


int count2 = 0;
char *m = "";
while ( m )
{
char *m = zstr_recv_nowait(pull);
count2++;
}

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] Zproject: how to define a signed 64bit int?

2020-12-04 Thread Arnaud Loonstra

Anybody suggestions?

I need to have a int64_t in my C api but zproject does not have such 
type unless I use the msecs type.


Can we add such a type or is there any other way?

If I specify int64 type in zproject I get a warning saying 'int64' does 
not resolve to a class.


Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] SPLASH 2020 keynote talk about ZeroMQ

2020-11-18 Thread Arnaud Loonstra

Hi everybody,

Kevin and I gave a talk about ZeroMQ at the ACM sigplan SPLASH 2020 
conference. Because of the global situation this was done completely 
online. A recording of our presentation is here:


https://youtu.be/aAQvhFjZ9gw?t=1533

Our talk starts around 25min.

Tucker Taft provides a very welcoming introduction of ZeroMQ!

I'm not sure if this recording will stay online.

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Setting 802.1p VLAN Priority

2020-11-09 Thread Arnaud Loonstra
I guess you didn't get a reply just yet. I don't go very deep into the 
core of libzmq. It seems you already had look yourself. I'm not aware of 
a socket option you are looking for but we welcome a patch that 
implements it?


Perhaps some of the other maintainers can shred a light on whether this 
is already possible in libzmq or why not.


Rg,

Arnaud

On 06-11-2020 15:46, Andy Heroff via zeromq-dev wrote:

Hi,

    We use 0MQ for messaging between applications across various VLANs 
within our system. Recently, we have added a requirement in which we 
would like to set the 802.1p priority field to something other than 0 
for a subset of these connections (most, but not all). There doesn't 
appear to be any method exposed to directly change the priority of the 
0MQ socket (e.g. setsockopt for SOL_SOCKET/SO_PRIORITY which would set 
the sk_priority field, and then get translated by egress-qos-map on the 
outbound link) within 0MQ.


    ZMQ_TOS is close, but by my understanding, that relies on (for us on 
top of Linux at least) a pre-determined mapping in the kernel and 
calculations based on DSCP values. Also, it doesn't appear to offer a 
mapping to the value of 3 which we're trying to set, even if we tried 
that route.


    As a temporary solution, we created a quick patch on top of ZMQ to 
allow directly setting the SO_PRIORITY via a new option in 
zmq::options_t::setsockopt, but it would be easier, of course, if we 
didn't have to patch 0MQ to accompish this end. Is there another method 
to set sk_priority directly via already existing 0MQ methods that I'm 
unaware of?


    Thanks in advance!

--- Andy

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Design for a Pub/Sub system

2020-11-03 Thread Arnaud Loonstra
Of course ZMQ can provide you with what you need but be aware that ZMQ 
provides you with the building blocks to build such infrastructure. It 
won't provide you with it out of the box. You also do not tell what 
infrastructure you are planning to use. I would guess you are going to 
use plain internet and thus are challenged by all the firewalls and 
crappy connections everywhere. Sure you can also go more highlevel using 
websockets or even MQTT but that would just require more of your 
backend. You really have to be able to distribure your load and ZMQ can 
provide you with building blocks for it.


Btw ZMQ is also providing websocket transport, just only as a draft API 
currently.


Rg,

Arnaud

On 03-11-2020 13:48, Yanone wrote:




Am 03.11.2020 um 13:08 schrieb Edwin van den Oetelaar :

Define : *very* high number of subscribers


It needs to be able to handle let's say <100K subscribers from the beginning 
without changes. Later, that number could go up to many millions when the big 
corporations jump onboard, which would be cool because then I can generate funding 
for a tool that aims to level the power asymmetry between them and the small and 
independent publishers. I want them to jump onboard, so I need to be prepared.

The design needs take this into account from the beginning. What this means for 
me is that I could continue to work on the messaging infrastructure without 
having to update the user-installed apps.
Sure, I *could* roll out updates, but I'd rather not break functionality for 
those apps that are not getting updated for whatever reason.

So I can postpone the actual scaling, but I feel like I need to make the right 
decisions from the get-go. Any change to the messaging system on the client 
side yields a functionality break.




how about some RSS feed or NNTP ?


I'm not sure how NNTP works exactly, but for sure constant polling is out of 
question I believe (RSS is not a transport protocol). Because the updates in my 
system will be very infrequent but need to trigger a somewhat instant GUI app 
event when they do happen, frequent polling is out of question. My whole system 
is designed rather distributed, so the subscription update payload will be 
polled from the small publisher’s web servers directly (after the discussed 
update notification) and I can't burden them or my own central server with a 
high and growing polling load.

Pub/Sub is perfect as long as the messaging system can handle high numbers of 
subscribers.



Or does it have to be real time in milli-seconds?


No, up to a few seconds lag is fine. Like a messaging app – as long as you can 
use it, it'll work. Messages can arrive a few seconds late and I can still have 
a conversation.



Why ZeroMQ?


Honestly, I'm really hoping that you guys can answer that question for me. 
Really, that's why I'm here.

I had already implemented Google’s commercial Pub/Sub, which works like a charm 
for my app, but topics and subscribers per topic are both limited to 10K each, 
so I can't even launch with that. AWS’s solution handles more, but also 
limited. After there, you need to roll your own for specs alone, plus it'll be 
cheaper in the long run.

Thanks for your time.
Jan




Best regards,
Edwin #oetelx

On Tue, 3 Nov 2020 at 12:51, Yanone  wrote:
Hello friends,

I'm new to the world of messaging systems. I'm developing an open source app in 
the world of graphic design that aims to change the way fonts are installed on 
people’s computers and with that tool help small and independent publishers to 
a better market position against the big evil corporations in our industry.

I need the GUI app to react to when either the user data or the font 
subscription data has changed. The central server will inform the GUI app of 
these changes and the app needs to react to them somewhat instantly. A few 
seconds lag are no problem, neither are missing messages as I can record the 
update timestamp for all datasets on the central server and have the GUI app 
ask the central server for the timestamps on startup or network-reconnect for 
all datasets that the GUI app instance is concerned with.

Back to ZeroMQ.
So I need to design a pub/sub system that is horizontally scalable if 
necessary. At first I'm sure I can do with a few tens of thousands of 
subscribers, but later that number could grow dramatically. The thing doesn't 
need to scale now, but eventually it may need to. So I'd rather make the right 
decisions now.

I read the guide (discarded non-pub/sub topics), and from what I understand, I 
can do with the simple-most pub/sub pattern. I don't need to store anything as 
the central server can keep the update timestamps as described. Messages can go 
lost. Only as long as the client is running and connected, I want updates to 
trigger.

I'm expecting extremely little throughput (could be one update per topic in 
many months), but I'm expecting high number of topics and *very* high number of 
subscribers. Theoretically, 

Re: [zeromq-dev] Using DRAFT methods of zeromq's build libraries

2020-11-03 Thread Arnaud Loonstra

[snip]

Yes - this happens automatically on *nix via pkg-config



Perhaps I could draft a PR to document this better, especially when 
using cmake. It's nice this handled by pkg-config but this is not used 
on Windows so you'd then need to set it explicitly 
(-DCZMQ_BUILD_DRAFT_API)?


Or any better suggestions?



Just quickly created the PR https://github.com/zeromq/czmq/pull/2129
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Using DRAFT methods of zeromq's build libraries

2020-11-03 Thread Arnaud Loonstra

On 02-11-2020 21:05, Luca Boccassi wrote:

On Mon, 2 Nov 2020 at 19:23, Arnaud Loonstra  wrote:


Just a quick question. Would one need to define CZMQ_BUILD_DRAFT_API in
their own project in order to use the DRAFT methods?

For example using CMake I build the libs like this (paste from appveyor):
- cmd: |
cd "%LIBZMQ_BUILDDIR%"
cmake .. -DBUILD_STATIC=OFF -DBUILD_SHARED=ON
-DZMQ_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX="%INSTALL_PREFIX%"
cmake --build . --config %Configuration% --target install
- cmd: |
cd "%CZMQ_BUILDDIR%"
cmake .. -DCZMQ_BUILD_STATIC=OFF -DCZMQ_BUILD_SHARED=ON
-DCMAKE_PREFIX_PATH="C:\tmp\ci_build" -DCMAKE_INSTALL_PRE
FIX="%INSTALL_PREFIX%"
cmake --build . --config %Configuration% --target install

Draft methods are enabled by default. But when using a draft method I
get unresolved external symbols (Windows)

This goes away when doing #define CZMQ_BUILD_DRAFT_API before including
czmq.h.

However I'm questioning this as using make on Linux does not show this
and I never have needed to define this.

So feature or bug?

Rg,

Arnaud


Yes - this happens automatically on *nix via pkg-config



Perhaps I could draft a PR to document this better, especially when 
using cmake. It's nice this handled by pkg-config but this is not used 
on Windows so you'd then need to set it explicitly (-DCZMQ_BUILD_DRAFT_API)?


Or any better suggestions?

Rg,

Arnaud

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Instructing the ci_build.sh script to use czmq from github

2020-09-08 Thread Arnaud Loonstra

On 03-09-2020 17:46, Luca Boccassi wrote:

On Thu, 2020-09-03 at 16:46 +0200, Arnaud Loonstra wrote:

Hey all,

Does anybody know how to instruct the ci_build.sh script to build with
czmq's master branch on github instead of the version provided by the
distribution?

For example I'm doing a test here which needs the OSC support of czmq:
https://travis-ci.org/github/sphaero/libsphactor/jobs/723804384

Of course it fails :S

I'd like to prevent writing my own script for travis.

Rg,

Arnaud


Just use packages from:

https://build.opensuse.org/package/show/network:messaging:zeromq:git-draft/czmq

They are built from latest HEAD on each push



Thanks Luca,

Comparing the travis config with Zyre's config showed I needed to add 
the OBS apt sources!


Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] Instructing the ci_build.sh script to use czmq from github

2020-09-03 Thread Arnaud Loonstra

Hey all,

Does anybody know how to instruct the ci_build.sh script to build with 
czmq's master branch on github instead of the version provided by the 
distribution?


For example I'm doing a test here which needs the OSC support of czmq:
https://travis-ci.org/github/sphaero/libsphactor/jobs/723804384

Of course it fails :S

I'd like to prevent writing my own script for travis.

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] building libzmq from master make check fail

2020-07-28 Thread Arnaud Loonstra

On 26-07-2020 03:41, Juergen Gnoss wrote:
I did the same on a fresh installed debian 10 running on arm (beaglebone 
black) and it runs trough without issues.


Some ideas about the issue on the ubuntu build?


Ju

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev




You have to provide a lot more details for us to generate any idea.

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Udp on Travis errors?

2020-07-16 Thread Arnaud Loonstra

On 16-07-2020 11:16, Arnaud Loonstra wrote:

On 16-07-2020 10:56, Luca Boccassi wrote:

On Thu, 2020-07-16 at 10:33 +0200, Arnaud Loonstra wrote:

[snip]


I think the problem is broadcast, rather than UDP. UDP should work fine
on Travis. That test will just skip if broadcast is not available.

Regarding IPv6, only the very old images support it (check libzmq) - so
any test should check first if it works, and skip if not.




Thanks for that Luca, documentation about this on travis is scarce.

I found the is_ipv6_available method in libzmq. I'll see if I can use 
that in czmq.


On ipv6 there is no broadcast, only multicast. As there's not much to 
find on this it could be the case that it should just work and so I'm 
doing something wrong perhaps.


Rg,

Arnaud


It seems this is an issue with Travis. The ipv4 tests work fine. Ipv6 is 
broken or not supported at all. Only on some LXD containers with 
specific architectures:


https://docs.travis-ci.com/user/reference/overview/

I'm going to try Appveyor.

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Udp on Travis errors?

2020-07-16 Thread Arnaud Loonstra

On 16-07-2020 10:56, Luca Boccassi wrote:

On Thu, 2020-07-16 at 10:33 +0200, Arnaud Loonstra wrote:

Hey all,

I think we have some issues with UDP on travis. For example the
zbeacon_ipv4_mcast_test is skipped because it can't open the UDP socket.
(sock == INVALID_SOCKET)

On some occasions zbeacon also fails with:
* zbeacon: D: (czmq_selftest) 20-07-16 08:00:20 zsys_udp_send: failed,
reason=Operation not permitted

D: (czmq_selftest) 20-07-16 08:00:20 zbeacon: failed to transmit,
attempting reconnection. reason=Resource temporarily unavailable

however the test still succeeds then. Somebody made this work apparently?

Anyhow, I was working on a new zudp class which was on the czmq's todo
list. Although tests are working on my machine they don't on Travis.

Anybody experience with travis and udp/ipv6?

See the zudp branch here:
https://github.com/sphaero/czmq/blob/zudp/src/zudp.c#L394

The failing travis here:
https://travis-ci.org/github/sphaero/czmq/jobs/708640774#L1895

Feedback on the zudp class is also welcomed!

Rg,

Arnaud


I think the problem is broadcast, rather than UDP. UDP should work fine
on Travis. That test will just skip if broadcast is not available.

Regarding IPv6, only the very old images support it (check libzmq) - so
any test should check first if it works, and skip if not.




Thanks for that Luca, documentation about this on travis is scarce.

I found the is_ipv6_available method in libzmq. I'll see if I can use 
that in czmq.


On ipv6 there is no broadcast, only multicast. As there's not much to 
find on this it could be the case that it should just work and so I'm 
doing something wrong perhaps.


Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] Udp on Travis errors?

2020-07-16 Thread Arnaud Loonstra

Hey all,

I think we have some issues with UDP on travis. For example the 
zbeacon_ipv4_mcast_test is skipped because it can't open the UDP socket. 
(sock == INVALID_SOCKET)


On some occasions zbeacon also fails with:
* zbeacon: D: (czmq_selftest) 20-07-16 08:00:20 zsys_udp_send: failed, 
reason=Operation not permitted


D: (czmq_selftest) 20-07-16 08:00:20 zbeacon: failed to transmit, 
attempting reconnection. reason=Resource temporarily unavailable


however the test still succeeds then. Somebody made this work apparently?

Anyhow, I was working on a new zudp class which was on the czmq's todo 
list. Although tests are working on my machine they don't on Travis.


Anybody experience with travis and udp/ipv6?

See the zudp branch here: 
https://github.com/sphaero/czmq/blob/zudp/src/zudp.c#L394


The failing travis here: 
https://travis-ci.org/github/sphaero/czmq/jobs/708640774#L1895


Feedback on the zudp class is also welcomed!

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Questions about the CMake config and MSVC (czmq/libzmq)

2020-06-05 Thread Arnaud Loonstra
Thanks for that Kevin. I've exactly mimicked the zyre setup of appveyor 
and it works. No idea what's the exact difference which makes it fail on 
my local machine. I have to look into that. Very weird but I'm one step 
further :)


Btw have you used the CMake setup in the visualstudio editor as well? 
From cli it works fine but from the editor the Find*.cmake scripts fail 
here.


Rg,

Arnaud

On 04-06-2020 17:17, Kevin Sapper wrote:

Hi Arnaud,

I can feel your pain :(

Try to compare what you did against what zyre is doing:
https://github.com/zeromq/zyre/blob/master/appveyor.yml

Cheers
//Kevin

Am Do., 4. Juni 2020 um 14:11 Uhr schrieb Arnaud Loonstra 
mailto:arn...@sphaero.org>>:


Hey all,

I'm going mental on getting a build working on Windows. I'm following
exactly the setup of Appveyor. This works fine. However when I try to
use the cmzq library it gives unresolved external symbols to symbols
from czmq. However the library is there, the tests were successful.


The link command ends up being this:

C:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX64
\x64\link.exe /ERRORREPORT:QUEUE

/OUT:"C:\msys64\home\ECT-Admin\src\libsphactor\msbuild\Debug\libsphactor.dll"

/INCREMENTAL /NOLOGO ws2_32.lib Rpcrt4.lib Iphlpapi.lib
"C:\out\lib\libzmq-v142-mt-gd-432.lib" C:\out\lib\libczmq.lib
kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST
/MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed
/DEBUG

/PDB:"C:/msys64/home/ECT-Admin/src/libsphactor/msbuild/Debug/libsphactor.pdb"

/SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT
/IMPLIB:"C:/msys64/home/ECT-Admin/
src/libsphactor/msbuild/Debug/sphactor.lib" /MACHINE:X64  /machine:x64
/DLL sphactor.dir\Debug\sphactor.obj
sphactor.dir\Debug\sphactor_actor.obj
sphactor.dir\Debug\sphactor_private_selftest.obj

Errors are

Creating library
C:/msys64/home/ECT-Admin/src/libsphactor/msbuild/Debug/sphactor.lib and
object
    C:/msys64/home/ECT-Admin/src/libsphactor/msbuild/Debug/sphactor.exp

sphactor.obj : error LNK2019: unresolved external symbol
__imp_zactor_new referenced in function spha
ctor_new
[C:\msys64\home\ECT-Admin\src\libsphactor\msbuild\sphactor.vcxproj]

sphactor_actor.obj : error LNK2001: unresolved external symbol
__imp_zactor_new [C:\msys64\home\ECT-A
dmin\src\libsphactor\msbuild\sphactor.vcxproj]

sphactor.obj : error LNK2019: unresolved external symbol
__imp_zactor_destroy referenced in function
sphactor_destroy
[C:\msys64\home\ECT-Admin\src\libsphactor\msbuild\sphactor.vcxproj]

etc, etc

These are the cmake commands I used to build:

libzmq:
cmake .. -DWITH_LIBSODIUM=OFF -DBUILD_STATIC=ON -DBUILD_SHARED=ON
-DCMAKE_INSTALL_PREFIX=C:\tmp
cmake --build . --config Debug --target=install
ctest -C Debug -V

czmq:
cmake .. -DCMAKE_PREFIX_PATH=C:\tmp -DCMAKE_INSTALL_PREFIX=C:\tmp
cmake --build . --config Debug --target install
ctest -C Debug -V

then my own project:
cmake .. -DCMAKE_PREFIX_PATH=C:\tmp -DCMAKE_INSTALL_PREFIX=C:\tmp
cmake --build . --config Debug --target install

Anybody any clues?
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org <mailto:zeromq-dev@lists.zeromq.org>
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] Why is the MSVC setup using the C++ compiler for C code?

2020-06-04 Thread Arnaud Loonstra
Why are zproject projects on Windows forced to use the C++ compiler when 
compiling C code? I know the MSVC compiler is old but using the C++ 
compiler seems to give errors when using the __cplusplus define.


Can anybody recall this?

I also made an issue for this:
https://github.com/zeromq/zproject/issues/1250

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] Questions about the CMake config and MSVC (czmq/libzmq)

2020-06-04 Thread Arnaud Loonstra

Hey all,

I'm going mental on getting a build working on Windows. I'm following 
exactly the setup of Appveyor. This works fine. However when I try to 
use the cmzq library it gives unresolved external symbols to symbols 
from czmq. However the library is there, the tests were successful.



The link command ends up being this:

C:\Program Files (x86)\Microsoft Visual 
Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX64 
\x64\link.exe /ERRORREPORT:QUEUE 
/OUT:"C:\msys64\home\ECT-Admin\src\libsphactor\msbuild\Debug\libsphactor.dll" 
/INCREMENTAL /NOLOGO ws2_32.lib Rpcrt4.lib Iphlpapi.lib 
"C:\out\lib\libzmq-v142-mt-gd-432.lib" C:\out\lib\libczmq.lib 
kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib 
oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST 
/MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG 
/PDB:"C:/msys64/home/ECT-Admin/src/libsphactor/msbuild/Debug/libsphactor.pdb" 
/SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT 
/IMPLIB:"C:/msys64/home/ECT-Admin/ 
src/libsphactor/msbuild/Debug/sphactor.lib" /MACHINE:X64  /machine:x64 
/DLL sphactor.dir\Debug\sphactor.obj 
sphactor.dir\Debug\sphactor_actor.obj 
sphactor.dir\Debug\sphactor_private_selftest.obj


Errors are

Creating library 
C:/msys64/home/ECT-Admin/src/libsphactor/msbuild/Debug/sphactor.lib and 
object
  C:/msys64/home/ECT-Admin/src/libsphactor/msbuild/Debug/sphactor.exp 

sphactor.obj : error LNK2019: unresolved external symbol 
__imp_zactor_new referenced in function spha
ctor_new 
[C:\msys64\home\ECT-Admin\src\libsphactor\msbuild\sphactor.vcxproj] 

sphactor_actor.obj : error LNK2001: unresolved external symbol 
__imp_zactor_new [C:\msys64\home\ECT-A
dmin\src\libsphactor\msbuild\sphactor.vcxproj] 

sphactor.obj : error LNK2019: unresolved external symbol 
__imp_zactor_destroy referenced in function
sphactor_destroy 
[C:\msys64\home\ECT-Admin\src\libsphactor\msbuild\sphactor.vcxproj] 


etc, etc

These are the cmake commands I used to build:

libzmq:
cmake .. -DWITH_LIBSODIUM=OFF -DBUILD_STATIC=ON -DBUILD_SHARED=ON 
-DCMAKE_INSTALL_PREFIX=C:\tmp

cmake --build . --config Debug --target=install
ctest -C Debug -V

czmq:
cmake .. -DCMAKE_PREFIX_PATH=C:\tmp -DCMAKE_INSTALL_PREFIX=C:\tmp
cmake --build . --config Debug --target install
ctest -C Debug -V

then my own project:
cmake .. -DCMAKE_PREFIX_PATH=C:\tmp -DCMAKE_INSTALL_PREFIX=C:\tmp
cmake --build . --config Debug --target install

Anybody any clues?
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Zyre Bind to public IP address

2020-04-20 Thread Arnaud Loonstra
What you're describing should be perfectly possible. Perhaps check your 
network setup first. You could just test with netcat whether you're 
network setup is correct.


Rg,

Arnaud

On 20-04-2020 17:10, Matteo wrote:
Hi Kevin, I opened port forwarding on my router and still the node 
cannot bind to my server ip address:port. I tried having my node inside 
my DMZ and still nothing. I am starting to wonder if the cloud provider 
(where my server resides) blocks some ports or if there is a config I 
need to work on, on the server side. I opened that port on my ubuntu 
server via iptables, but maybe I need to use ufw?

I'll dig more.

Is it confirmed that Zyre can connect to a remote tcp address right? I 
mean an address that is outside of the node LAN


Thank you

On Mon, Apr 20, 2020 at 2:20 AM Kevin Sapper > wrote:


Hi Matteo,
maybe you need Port forwarding from your router to the peer?

Matteo mailto:matteo.brich...@gmail.com>> schrieb am Mo., 20. Apr. 2020,
03:55:

Hi all, I am using Zyre and I am trying to bind to a server
(that I have control over), server has a public address and I
tried binding to a "" port that where I accept all incoming
tcp connections (as a test) but so far I had no luck. The node
cannot bind to it.

I know I am probably missing something silly.

Any input?

-- 
Matteo

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org 
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org 
https://lists.zeromq.org/mailman/listinfo/zeromq-dev



--
Matteo

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] cppzmq "tour"

2020-04-15 Thread Arnaud Loonstra

On 16-04-2020 02:05, Brett Viren wrote:

Hi,

I wrote up a "tour" of cppzmq in order to drive me to learn more about
it.

   https://brettviren.github.io/cppzmq-tour/

Maybe it's of use or interest to others.

Cheers,
-Brett.



Nice, documentation like that is very welcomed!

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] cmake subdir support in zproject

2020-02-23 Thread Arnaud Loonstra

Hey all,

I've created a PR for issue 
https://github.com/zeromq/zproject/issues/1237 
(https://github.com/zeromq/zproject/issues/1238)


When a zproject generated project is used as a subdirectory in another 
cmake project it will fail. This is due to custom targets being defined 
in the cmake file. (i.e. clang-format-*, distclean and selftest 
targets). We can skip these definitions when they already exist and this 
fixes the issue.


However I can't oversee the consequences fully so if anybody has 
feedback on this fix/workaround please make some noise.


Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] FOSDEM 2020 ZeroMQ gathering/meetup/hackaton/knitting club on Monday 3rd and Tuesday 4th February 2020

2020-02-01 Thread Arnaud Loonstra
I'm eating @kipkot.be with some people. Not sure afterwards. Might head back to 
stay a bit fresh for my talk tomorrow.

Rg,

ArnaudOn Feb 1, 2020 16:31, Simon Giesecke  wrote:
>
> My plan is to go to BrewDog 
> (https://www.brewdog.com/bars/global/brewdog-brussels/) later this evening, I 
> think I might make it there by around 9pm. They also have non-beer drinks 
> (wine, soft drinks, ...) :)
>
> On Sat, Feb 1, 2020 at 4:21 PM Kevin Sapper  wrote:
>>
>> Are there any plans for this evening. I'm still free ;) 
>>
>> Arnaud Loonstra  schrieb am Fr., 31. Jan. 2020, 22:13:
>>>
>>> I just arrived in Brussel. Hope to see you at FOSDEM!
>>>
>>> Arnaud
>>>
>>> On 30-01-2020 10:52, Luca Boccassi wrote:
>>> > I am travelling with James who's coming too, booked a table for 6 (in 
>>> > case we get a couple of stragglers) at 19.30. See you there!
>>> > 
>>> > On Wed, 2020-01-29 at 21:24 +0100, Kevin Sapper wrote:
>>> >> I won't be in Brussels at Friday till 21 O'clock. I'll catch up with 
>>> >> you then.
>>> >>
>>> >> Doron Somech mailto:somdo...@gmail.com>> schrieb 
>>> >> am Mi., 29. Jan. 2020, 12:37:
>>> >>> I'm in
>>> >>>
>>> >>> On Wed, Jan 29, 2020, 13:13 Luca Boccassi >> >>> <mailto:luca.bocca...@gmail.com>> wrote:
>>> >>>> Shall we do the traditional meat balls dinner before the beer event 
>>> >>>> on Friday?
>>> >>>>
>>> >>>> http://ballsnglory.be/?lang=en
>>> >>>>
>>> >>>> https://goo.gl/maps/6Gd85picETpaaFmEA
>>> >>>>
>>> >>>> 19.30? I can book a table
>>> >>>>
>>> >>>> On Sun, 2020-01-12 at 13:45 +0200, Doron Somech wrote:
>>> >>>>> I'm arriving on Friday morning actually, so if anyone in the city 
>>> >>>>> and would like to hack zeromq (or dafka), let me know.
>>> >>>>>
>>> >>>>> > Is anyone up for a beer on Saturday or Sunday evening?
>>> >>>>>
>>> [snip]
>>> ...
>>> ___
>>> zeromq-dev mailing list
>>> zeromq-dev@lists.zeromq.org
>>> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>
>> ___
>> zeromq-dev mailing list
>> zeromq-dev@lists.zeromq.org
>> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
>
> -- 
>
> Dr.-Ing. Simon Giesecke
> Lehmbruckstr. 18 - 10245 Berlin (Friedrichshain)
> Tel.: 030-29360491
> Tel.: 0179-6868999 (Mobil)
> E-Mail: simon.giese...@gmxpro.de
>
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] FOSDEM 2020 ZeroMQ gathering/meetup/hackaton/knitting club on Monday 3rd and Tuesday 4th February 2020

2020-01-31 Thread Arnaud Loonstra

I just arrived in Brussel. Hope to see you at FOSDEM!

Arnaud

On 30-01-2020 10:52, Luca Boccassi wrote:
I am travelling with James who's coming too, booked a table for 6 (in 
case we get a couple of stragglers) at 19.30. See you there!


On Wed, 2020-01-29 at 21:24 +0100, Kevin Sapper wrote:
I won't be in Brussels at Friday till 21 O'clock. I'll catch up with 
you then.


Doron Somech mailto:somdo...@gmail.com>> schrieb 
am Mi., 29. Jan. 2020, 12:37:

I'm in

On Wed, Jan 29, 2020, 13:13 Luca Boccassi > wrote:
Shall we do the traditional meat balls dinner before the beer event 
on Friday?


http://ballsnglory.be/?lang=en

https://goo.gl/maps/6Gd85picETpaaFmEA

19.30? I can book a table

On Sun, 2020-01-12 at 13:45 +0200, Doron Somech wrote:
I'm arriving on Friday morning actually, so if anyone in the city 
and would like to hack zeromq (or dafka), let me know.


> Is anyone up for a beer on Saturday or Sunday evening?


[snip]
...
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Problems building zmq

2019-11-20 Thread Arnaud Loonstra

If I issue

pkg-config --libs libczmq

I get

-L/usr/local/lib -lczmq

So I guess you should do

gcc zmqserver.c -o zmqserver -lczmq -L.

instead of libcmzq. This is on Debian but I guess Ubuntu is the same.

Rg,

Arnaud


On 20-11-2019 17:23, Bill Engelke wrote:

Hello all:

I would like to work with zmq in C, and I have hit problems trying to 
compile and link the server/client example here 
 and trying to build any of 
the zguide examples here 
.


Platform: Ubuntu (tried all of this using first the ARM libraries on an 
Odroid, then the x86_64 libraries on a PC running Ubuntu); same results


I used sudo-apt-get install libczmq-dev   (this is the only package I 
can find available for Ubuntu)


sudo ldconfig

I have verified that the shared library is present in 
/usr/lib/x86_64-linux-gnu/ (libczmq, that is libczmq.so)


When I use this:

gcc zmqserver.c -o zmqserver -llibczmq -L.

I get:

/usr/bin/ld: cannot find -llibczmq

collect2: error: ld returned 1 exit status

I have tried referencing the library directly:

/usr/bin/ld: cannot find -l:/usr/lib/x86_64-linux-gnu/libczmq

collect2: error: ld returned 1 exit status

I have tried every possible combination of the order of the link 
references I can come up with, all with the same result.


Running using the verbose flag, we get:

gcc zmqserver.c -o zmqserver -llibczmq -L. -v

Using built-in specs.

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper

OFFLOAD_TARGET_NAMES=nvptx-none

OFFLOAD_TARGET_DEFAULT=1

Target: x86_64-linux-gnu

Configured with: ../src/configure -v --with-pkgversion='Ubuntu 
7.4.0-1ubuntu1~18.04.1' 
--with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs 
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ 
--prefix=/usr --with-gcc-major-version-only --program-suffix=-7 
--program-prefix=x86_64-linux-gnu- --enable-shared 
--enable-linker-build-id --libexecdir=/usr/lib 
--without-included-gettext --enable-threads=posix --libdir=/usr/lib 
--enable-nls --with-sysroot=/ --enable-clocale=gnu 
--enable-libstdcxx-debug --enable-libstdcxx-time=yes 
--with-default-libstdcxx-abi=new --enable-gnu-unique-object 
--disable-vtable-verify --enable-libmpx --enable-plugin 
--enable-default-pie --with-system-zlib --with-target-system-zlib 
--enable-objc-gc=auto --enable-multiarch --disable-werror 
--with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 
--enable-multilib --with-tune=generic 
--enable-offload-targets=nvptx-none --without-cuda-driver 
--enable-checking=release --build=x86_64-linux-gnu 
--host=x86_64-linux-gnu --target=x86_64-linux-gnu


Thread model: posix

gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)

COLLECT_GCC_OPTIONS='-o' 'zmqserver' '-L.' '-v' '-mtune=generic' 
'-march=x86-64'


/usr/lib/gcc/x86_64-linux-gnu/7/cc1 -quiet -v -imultiarch 
x86_64-linux-gnu zmqserver.c -quiet -dumpbase zmqserver.c -mtune=generic 
-march=x86-64 -auxbase zmqserver -version -fstack-protector-strong 
-Wformat -Wformat-security -o /tmp/cc2R1v53.s


GNU C11 (Ubuntu 7.4.0-1ubuntu1~18.04.1) version 7.4.0 (x86_64-linux-gnu)

     compiled by GNU C version 7.4.0, GMP version 6.1.2, 
MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.19-GMP


GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072

ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"

ignoring nonexistent directory 
"/usr/lib/gcc/x86_64-linux-gnu/7/../../../../x86_64-linux-gnu/include"


#include "..." search starts here:

#include <...> search starts here:

/usr/lib/gcc/x86_64-linux-gnu/7/include

/usr/local/include

/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed

/usr/include/x86_64-linux-gnu

/usr/include

End of search list.

GNU C11 (Ubuntu 7.4.0-1ubuntu1~18.04.1) version 7.4.0 (x86_64-linux-gnu)

     compiled by GNU C version 7.4.0, GMP version 6.1.2, 
MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.19-GMP


GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072

Compiler executable checksum: fa57db1fe2d756b22d454aa8428fd3bd

COLLECT_GCC_OPTIONS='-o' 'zmqserver' '-L.' '-v' '-mtune=generic' 
'-march=x86-64'


as -v --64 -o /tmp/ccKlQGoW.o /tmp/cc2R1v53.s

GNU assembler version 2.30 (x86_64-linux-gnu) using BFD version (GNU 
Binutils for Ubuntu) 2.30


COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/

LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../:/lib/:/usr/lib/

COLLECT_GCC_OPTIONS='-o' 'zmqserver' '-L.' '-v' '-mtune=generic' 
'-march=x86-64'


/usr/lib/gcc/x86_64-linux-gnu/7/collect2 

Re: [zeromq-dev] fd leak with dealer to dealer with tcp as transport

2019-11-14 Thread Arnaud Loonstra

On 14-11-2019 10:07, donthamsetty sivaprasad via zeromq-dev wrote:

Hi ,
I have DEALER sockets with tcp as transport.
Before sending each packet I do zmq_connect , zmq_msg_send and 
zmq_disconnect since same DEALER can talk to another dealer ( it is many 
to many communication ,but no load bancing or round robin)..


The system is crashing running out of file descriptors in the system..
Could you please help me..?

Thanks
Siva



Please show some code which demonstrates your problem. It sounds like 
you are constantly creating new sockets without destroying them. In 
general you first connect and then send the message. You only disconnect 
if you need to (usually on destroy). Also have you read the zeromq 
guide? It shows many examples.


Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] zproject's cmake test fails if no private classes

2019-10-29 Thread Arnaud Loonstra

My zproject generated project has no private classes:

./sphactor_selftest --list

However when run on travis it tries to test private classes:

test 3

Start 3: private_classes

3: Test command: 
/home/travis/build/sphaero/libsphactor/libsphactor-0.0.1/sphactor_selftest 
"--continue" "--verbose" "--test" "private_classes"


3: Test timeout computed to be: 60

3: private_classes not valid, use --list to show tests

3/3 Test #3: private_classes ..***Failed0.00 sec


Is there any switch to disable that? It's a bit of a jungle to find 
where I can disable it so some pointers are also helpful.


Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] czmq pendantic test error

2019-10-29 Thread Arnaud Loonstra
Anybody ideas how to get around errors like these when using function 
pointers in zhash?


src/sphactor.c: In function 'sphactor_new_by_type':

src/sphactor.c:71:36: error: ISO C forbids conversion of object pointer 
to function pointer type [-Werror=pedantic]


 sphactor_handler_fn *handler = (sphactor_handler_fn *) 
zhash_lookup( actors_reg, actor_type);


I know pedantic is a bit extreme but I'm curious what would work. I'm 
registering handlers by a name in a zhash:


https://github.com/sphaero/libsphactor/blob/8f6cc11fb1f1cb513175a091e7fc437de7219752/src/sphactor.c#L265 



Apparently this is not allowed strictly speaking.

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] polling fd with czmq

2019-10-28 Thread Arnaud Loonstra

On 25-10-2019 10:25, Luca Boccassi wrote:

On Thu, 2019-10-24 at 15:35 +0200, Arnaud Loonstra wrote:

Hi all,

I'm wondering what is the best approach to polling a non-zmq socket
using czmq. It doesn't seem documented?

I can add a fd as follows:

...
s=socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1)
zpoller_add(poller, );
...

If I then poll zpoller_wait returns on activity however it's not a
valid
zsock_t instance:

zsock_t *which = (zsock_t *)zpoller_wait(poller, -1);

zsock_is(which) will return false. I've found 'which' is just what
you
added to the poller so if I cast to an int it will resolve to the
correct filedescriptor number.

So either I cast it back to an int or I keep checking the pointer
addresses. However casting an int to zsock_t doesn't feel safe.

So question is what is best/safest approach?

Rg,

Arnaud


Strange, that should work - the zpoller_add documentation is missing
it, but the zpoller_new doc clearly says a file handle is supported,
and the implementation confirms it - you should be able to pass it a
file descriptor as you are doing.

Did you by any chance compile libzmq with draft apis and the new
zmq_poller APIs? That changes the implementation quite a bit, and there
might be regressions yet unspotted.



It does work, Luca. It just wasn't clear. I submitted a PR:

https://github.com/zeromq/czmq/pull/2028

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] polling fd with czmq

2019-10-24 Thread Arnaud Loonstra

Hi all,

I'm wondering what is the best approach to polling a non-zmq socket 
using czmq. It doesn't seem documented?


I can add a fd as follows:

...
s=socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1)
zpoller_add(poller, );
...

If I then poll zpoller_wait returns on activity however it's not a valid 
zsock_t instance:


zsock_t *which = (zsock_t *)zpoller_wait(poller, -1);

zsock_is(which) will return false. I've found 'which' is just what you 
added to the poller so if I cast to an int it will resolve to the 
correct filedescriptor number.


So either I cast it back to an int or I keep checking the pointer 
addresses. However casting an int to zsock_t doesn't feel safe.


So question is what is best/safest approach?

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] segmentation fault with czmq

2019-09-27 Thread Arnaud Loonstra

What platform are you on and what versions of the libs are you using?

On 27-09-2019 01:22, Shishir Pandey wrote:

Hi

I was trying to run the lpclient.c (lazie pirate, chapter 4, 
http://zguide.zeromq.org/page:all#Client-Side-Reliability-Lazy-Pirate-Pattern) 
   program from the guide. The program uses the old czmq API and does 
not work. I was trying to run with the latest czmq library and change 
the program to the following program :


#include

#defineREQUEST_TIMEOUT2500// msecs, (>1000!)

#defineREQUEST_RETRIES3// Before we abandon

#defineSERVER_ENDPOINT"tcp://localhost:"

intmain()

{

zsock_t *client = zsock_new_req(SERVER_ENDPOINT);

printf("I: Connecting to server...\n");

assert(client);

int sequence = 0;

int retries_left = REQUEST_RETRIES;

printf("Entering while loop...\n");

while(retries_left) // interrupt needs to be handled

 {

// We send a request, then we get a reply

charrequest[10];

sprintf(request, "%d", ++sequence);

zstr_send(client, request);

int expect_reply = 1;

while(expect_reply)

 {

printf("Expecting reply\n");

zmq_pollitem_t items [] = {{client, 0, ZMQ_POLLIN, 0}};

printf("After polling\n");

int rc = zmq_poll(items, 1, REQUEST_TIMEOUT * ZMQ_POLL_MSEC);

printf("Polling Done.. \n");

if (rc == -1)

break; // Interrupted

// Here we process a server reply and exit our loop if the

// reply is valid. If we didn't get a reply we close the

// client socket, open it again and resend the request. We

// try a number times before finally abandoning:

if (items[0].revents & ZMQ_POLLIN)

 {

// We got a reply from the server, must match sequence

char *reply = zstr_recv(client);

if(!reply)

break; // interrupted

if (atoi(reply) == sequence)

 {

printf("I: server replied OK (%s)\n", reply);

 retries_left=REQUEST_RETRIES;

 expect_reply = 0;

 }

else

 {

printf("E: malformed reply from server: %s\n", reply);

 }

free(reply);

 }

else

 {

if(--retries_left == 0)

 {

printf("E: Server seems to be offline, abandoning\n");

break;

 }

else

 {

printf("W: no response from server, retrying...\n");

zsock_destroy();

printf("I: reconnecting to server...\n");

 client = zsock_new_req(SERVER_ENDPOINT);

zstr_send(client, request);

 }

 }

 }

zsock_destroy();

return0;

 }

}

I get a segmentation fault on line – “ int rc = zmq_poll(item….” Wasn’t 
able to fix it, could some one help me with this?


Thanks.

--

sp


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] Zyre evasive events discussion

2019-09-09 Thread Arnaud Loonstra

Hey all,

For people into Zyre there's a PR request about the evasive event. I 
think it needs more eyes and minds. I haven't used zyre in a while so 
I'm not too much into it. Anybody any feedback?


See: https://github.com/zeromq/zyre/pull/643

`As a developer I would expect zyre to maintain its p2p network 
brilliantly and inform me if something is (or may be) wrong. Honestly, 
the current EVASIVE event just telling me that a manual ping was 
necessary because a peer is quiet does not seem as useful as the other 
events which are all perfectly relevant.
I intend to use zyre in gossip mode later on (which will require some 
fixing to catch agents exiting without the beacons) and this discussion 
about an agent being there or not will become critical.


The other way to analyse the problem is to check how EVASIVE is used at 
the moment... and maybe if it used at all. My experience is that since 
its introduction in a stable version, not once was is useful in 
real-world cases for me.`


I know we always merge pull requests and resolve in time but still I'm 
not sure this is needed?


Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] mesh app

2019-09-03 Thread Arnaud Loonstra

Indeed, wasn't edgenet all about this as well?

Btw, there's also Briar: https://briarproject.org/
We've been testing it during FOSDEM last year.

Some bluetooth support in Zyre would be nice as well.

Rg,

Arnaud

On 03-09-2019 15:19, Benjamin Henrion wrote:

Hi,

I remember Pieter wanted to add support for Bluetooth:

https://www.forbes.com/sites/johnkoetsier/2019/09/02/hong-kong-protestors-using-mesh-messaging-app-china-cant-block-usage-up-3685

Unfortunately, their message layer seems to be proprietary.

I guess the Hydra app prototype was going in a similar direction.

Best,


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] PUB/SUB message lost if sent after connect()

2019-08-27 Thread Arnaud Loonstra

I think you are dealing with the slow subscriber problem:

http://zguide.zeromq.org/page:all#toc117

Rg,

Arnaud

On 27-08-2019 09:52, Tomaz Beltram wrote:

Hi,

I use pub/sub pattern to deliver events and have noticed that some
messages get lost. I make sure that subscriber binds to the socket and
waits in recv() before the publisher sends the event. I was able to
reproduce this issue when the publisher calls send() immediately after
connect(). If there is a 1ms sleep in between two calls the message is
received. Sample code is here: https://pastebin.com/TjUtfFgp

Is this expected behaviour, bug or am I missing some important socket
options?

The OS is Ubuntu 18.04 with libzmq5.

wbr Tomaz

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] FOSDEM 2020 ZeroMQ gathering/meetup/hackaton/knitting club

2019-08-13 Thread Arnaud Loonstra

Yes I'm in as well!

Perhaps we need to opt some topcis again?

I do have some different scale topics which could be subject for discussion?

* some possibly disruptive changes in czmq to define some methods as 
destructors: ref: https://github.com/zeromq/zproject/issues/1172

* new zactors using the new sockets?
* visualising zmq topologies? In theory this should be very well 
possible. Would this be interesting for the zmq community? I'm currently 
researching a system to visualize actors but was thinking this could be 
done for any zmq topology. It is also a very intuitive approach into 
understanding the flow of a program.


Btw, kudos to Doron's work on a new website

Rg,

Arnaud


On 11-08-2019 20:31, Kevin Sapper wrote:

Yes, definitely ;)

Doron Somech mailto:somdo...@gmail.com>> schrieb am 
So., 11. Aug. 2019, 15:21:


Yes, of course :)

On Sun, Aug 11, 2019 at 1:55 PM Luca Boccassi
mailto:luca.bocca...@gmail.com>> wrote:

Hello all,

It's that time of the year again - well, almost.

The dates for FOSDEM 2020 have been announced - 1st and 2nd of
February.

Shall we organize the usual ZeroMQ meetup?

https://fosdem.org/2020/news/2019-08-11-dates-fosdem-2020/

-- 
Kind regards,

Luca Boccassi
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org 
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org 
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Decentralized messaging

2019-05-27 Thread Arnaud Loonstra

Hey Benjamin,

I'm not sure what you mean. I've skimmed the article but it clearly says 
it's using Elk (on top of Whisper). I think this is what Whisper is using:


https://github.com/ethereum/devp2p/blob/master/rlpx.md

What do you want to know?

Rg,

Arnaud


On 5/27/19 4:50 PM, Benjamin Henrion wrote:

Hi,

Just reading this article, which talks about P2P messaging for thermostats:

https://hackernoon.com/diy-build-your-own-decentralized-thermostat-7acb6a2833d4

Anyone knows what those protocols work?

Best,

--
Benjamin Henrion (zoobab)
Email: zoobab at gmail.com
Mobile: +32-484-566109
Web: http://www.zoobab.com
FFII.org Brussels
"In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators."
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Maximum number of zactors?

2019-05-22 Thread Arnaud Loonstra
Also important to know is that czmq uses an environment var 
ZSYS_MAX_SOCKETS (default 1024) which limits the maximum number of 
filedescriptors even when the process is allowed more.


from the man page:
//  Configure the number of sockets that ZeroMQ will allow. The default
//  is 1024. The actual limit depends on the system, and you can query it
//  by using zsys_socket_limit (). A value of zero means "maximum".
//  Note that this method is valid only before any socket is created.
CZMQ_EXPORT void
zsys_set_max_sockets (size_t max_sockets);

Rg,

Arnaud


On 5/16/19 6:01 PM, Doron Somech wrote:

File descriptor is being used for signaling.
If zactor would use thread safe sockets it would be unlimited.

On Thu, May 16, 2019, 18:51 Arnaud Loonstra <mailto:arn...@sphaero.org>> wrote:


Hi all,

I'm currently stress testing a setup with actors. What's the maximum
number of running zactors? As it's using inproc no file descriptors are
involved. I'm using this test:

      // mega zactor test
      zlist_t *spawned_act = zlist_new();
      for (int i=0;i<507;i++)
      {
          zactor_t *act = zactor_new(echo_actor, "Hello actor");
          assert(act);
          zlist_append(spawned_act, act);
      }
      while(zlist_size(spawned_act) > 0)
      {
          zactor_t *dstr = zlist_pop(spawned_act);
          zactor_destroy();
      }

If I go beyond 507 actors I receive an assert:

src/zsock.c:88: zsock_new_checked: Assertion `self->handle' failed.

Which traces back to:

self->handle = zsys_socket (type, filename, line_nbr);

Which is a wrapper for creating a zmq socket.

Any ideas why there's is this limit of 507 actors?

I also tried with my own actor library which adds pub/sub sockets to
the
actor. I then have a maximum of 252 actors.

Rg,

Arnaud

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org <mailto:zeromq-dev@lists.zeromq.org>
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Maximum number of zactors?

2019-05-16 Thread Arnaud Loonstra

Thanks Doron!

I guess this post from Pieter is a good backgrounder as well:

http://hintjens.com/blog:84

On 5/16/19 7:49 PM, Doron Somech wrote:
Over inproc zeromq need to signal the other thread (if asleep, no 
waiting messages) that a message is ready to be consumed. Internally 
zeromq is using a file descriptor for that.


However, with thread-safe sockets, a mutex and conditional variable are 
used for signaling so no file descriptor is used (and it doesn't go to 
the kernel for most cases, so some way faster).


CLIENT-SERVER, RADIO-DISH, and GATHER-SCATTER are the new thread-safe 
sockets. You can use them from multiple threads. However, the catch is 
that they don't support multi-part messages.


In the case of zactor, we can benefit from a thread-safe actor, which 
can be called from multiple threads. However, we might need to create a 
new class for that, or maybe just a constructor. zactor_new_safe?


I think the CLIENT-SERVER sockets are the best fit for the safe actor. 
When it is only a command threads can share the client, but when it is a 
request-response we would need to create a client per thread or client 
per request, which is not that expensive as no file descriptor is created.



On Thu, May 16, 2019 at 8:32 PM Arnaud Loonstra <mailto:arn...@sphaero.org>> wrote:


Hi Doron,

Can you elaborate? I've heard about threadsafe sockets in zmq but
haven't seen them in the wild. Any pointers?

Rg,

Arnaud

On 5/16/19 6:01 PM, Doron Somech wrote:
 > File descriptor is being used for signaling.
 > If zactor would use thread safe sockets it would be unlimited.
 >
 > On Thu, May 16, 2019, 18:51 Arnaud Loonstra mailto:arn...@sphaero.org>
 > <mailto:arn...@sphaero.org <mailto:arn...@sphaero.org>>> wrote:
 >
 >     Hi all,
 >
 >     I'm currently stress testing a setup with actors. What's the
maximum
 >     number of running zactors? As it's using inproc no file
descriptors are
 >     involved. I'm using this test:
 >
 >           // mega zactor test
 >           zlist_t *spawned_act = zlist_new();
 >           for (int i=0;i<507;i++)
 >           {
 >               zactor_t *act = zactor_new(echo_actor, "Hello actor");
 >               assert(act);
 >               zlist_append(spawned_act, act);
 >           }
 >           while(zlist_size(spawned_act) > 0)
 >           {
 >               zactor_t *dstr = zlist_pop(spawned_act);
 >               zactor_destroy();
 >           }
 >
 >     If I go beyond 507 actors I receive an assert:
 >
 >     src/zsock.c:88: zsock_new_checked: Assertion `self->handle'
failed.
 >
 >     Which traces back to:
 >
 >     self->handle = zsys_socket (type, filename, line_nbr);
 >
 >     Which is a wrapper for creating a zmq socket.
 >
 >     Any ideas why there's is this limit of 507 actors?
 >
 >     I also tried with my own actor library which adds pub/sub
sockets to
 >     the
 >     actor. I then have a maximum of 252 actors.
 >
 >     Rg,
 >
 >     Arnaud
 >
 >     ___
 >     zeromq-dev mailing list
 > zeromq-dev@lists.zeromq.org <mailto:zeromq-dev@lists.zeromq.org>
<mailto:zeromq-dev@lists.zeromq.org
<mailto:zeromq-dev@lists.zeromq.org>>
 > https://lists.zeromq.org/mailman/listinfo/zeromq-dev
 >
 >
 > ___
 > zeromq-dev mailing list
 > zeromq-dev@lists.zeromq.org <mailto:zeromq-dev@lists.zeromq.org>
 > https://lists.zeromq.org/mailman/listinfo/zeromq-dev
 >
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org <mailto:zeromq-dev@lists.zeromq.org>
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Maximum number of zactors?

2019-05-16 Thread Arnaud Loonstra

Hi Doron,

Can you elaborate? I've heard about threadsafe sockets in zmq but 
haven't seen them in the wild. Any pointers?


Rg,

Arnaud

On 5/16/19 6:01 PM, Doron Somech wrote:

File descriptor is being used for signaling.
If zactor would use thread safe sockets it would be unlimited.

On Thu, May 16, 2019, 18:51 Arnaud Loonstra <mailto:arn...@sphaero.org>> wrote:


Hi all,

I'm currently stress testing a setup with actors. What's the maximum
number of running zactors? As it's using inproc no file descriptors are
involved. I'm using this test:

      // mega zactor test
      zlist_t *spawned_act = zlist_new();
      for (int i=0;i<507;i++)
      {
          zactor_t *act = zactor_new(echo_actor, "Hello actor");
          assert(act);
          zlist_append(spawned_act, act);
      }
      while(zlist_size(spawned_act) > 0)
      {
          zactor_t *dstr = zlist_pop(spawned_act);
          zactor_destroy();
      }

If I go beyond 507 actors I receive an assert:

src/zsock.c:88: zsock_new_checked: Assertion `self->handle' failed.

Which traces back to:

self->handle = zsys_socket (type, filename, line_nbr);

Which is a wrapper for creating a zmq socket.

Any ideas why there's is this limit of 507 actors?

I also tried with my own actor library which adds pub/sub sockets to
the
actor. I then have a maximum of 252 actors.

Rg,

Arnaud

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org <mailto:zeromq-dev@lists.zeromq.org>
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] Maximum number of zactors?

2019-05-16 Thread Arnaud Loonstra

Hi all,

I'm currently stress testing a setup with actors. What's the maximum 
number of running zactors? As it's using inproc no file descriptors are 
involved. I'm using this test:


// mega zactor test
zlist_t *spawned_act = zlist_new();
for (int i=0;i<507;i++)
{
zactor_t *act = zactor_new(echo_actor, "Hello actor");
assert(act);
zlist_append(spawned_act, act);
}
while(zlist_size(spawned_act) > 0)
{
zactor_t *dstr = zlist_pop(spawned_act);
zactor_destroy();
}

If I go beyond 507 actors I receive an assert:

src/zsock.c:88: zsock_new_checked: Assertion `self->handle' failed.

Which traces back to:

self->handle = zsys_socket (type, filename, line_nbr);

Which is a wrapper for creating a zmq socket.

Any ideas why there's is this limit of 507 actors?

I also tried with my own actor library which adds pub/sub sockets to the 
actor. I then have a maximum of 252 actors.


Rg,

Arnaud

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] zproject api design and binding question

2019-05-09 Thread Arnaud Loonstra
I've been testing the cffi binding but it's missing some features. I've 
already added one for handling double pointers.

For the record I've been fixing variadics here:

https://github.com/sphaero/zproject/tree/fix_cffi

Still needs testing and fixing destroying

Test file here:
https://gist.github.com/sphaero/f5b2c89a52a1cd3c55bccd61b0ae7ff8

erroring on:

Traceback (most recent call last):
  File "test.py", line 66, in 
input.recv(input, b"m", copy._p)
AttributeError: cdata 'struct _zmsg_t *' points to an opaque type: 
cannot read fields

python3: src/zmsg.c:64: zmsg_destroy: Assertion `zmsg_is (self)' failed.

Rg,

Arnaud

On 5/7/19 4:51 PM, Arnaud Loonstra wrote:
This indeed seems to a problem with at least Python's ctypes binding. 
Perhaps we could mention this somewhere?


I'm now trying the cffi binding. However you'd need to be some wizard to 
get this working without prior knowledge.


I got the binding to build and install. Now trying a simple test to get 
started:


```
from czmq_cffi import *

Zactor.test(True)

output = Zsock(0) # 0 == PAIR
output.connect(b"@inproc://zmsg.test")
assert(output)

input = Zsock(0) # 0 == PAIR
input.bind(b">inproc://zmsg.test")
assert (input);

msg = Zmsg()
assert (msg);
frame = Zframe(b"Hello", 5)
assert (frame);
msg.prepend(frame)
assert (msg.size() == 1)
assert (msg.content_size () == 5);
rc = msg.send(output)
assert (rc == 0)

msg = input.recv(input);
assert (msg)
assert (msg.size() == 1)
assert (msg.content_size() == 5)
```

However it fails:
```
Traceback (most recent call last):
   File "test.py", line 20, in 
     msg.prepend(frame);
   File 
"/home/arnaud/src/libsphactor/bindings/py3test/lib/python3.7/site-packages/czmq_cffi-4.2.1-py3.7-linux-x86_64.egg/czmq_cffi/Zmsg.py", 
line 80, in prepend

     return utils.lib.zmsg_prepend(self._p, frame_p._p)
TypeError: initializer for ctype 'struct _zframe_t * *' must be a 
pointer to same type, not cdata 'struct _zframe_t *'

```
So how to do that? How to get the pointer from Zrame object?

@Kevin, you here? You wrote the cffi binding generator, not?
I think it would be helpful for others if we create a unittest.

Rg,

Arnaud




On 5/2/19 4:20 PM, Arnaud Loonstra wrote:

Hey all,

I'm using zproject to design and build a library to extend zactor a 
bit. However I'm now running into a design issue when using callbacks.


For example I have in my api:
https://github.com/sphaero/libsphactor/blob/master/api/sphactor.api

 
 Callback function for socket activity
 
 
 
 

So a callback which accepts a zmsg and returns a zmsg.

Works perfectly in C. However when I bind to Python it doesn't work. 
It seems Python(ctypes) only handles returning simple types from 
callbacks:


https://bugs.python.org/issue5710

I can see this doesn't apply to any api's I've found so for in czmq or 
zyre.


My question is whether it is bad api design from my side? Or are there 
any workarounds or better approaches for this?


Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] Travis defaults to xenial

2019-05-09 Thread Arnaud Loonstra

Hey all,

It seems travis is switching the default to xenial.

https://blog.travis-ci.com/2019-04-15-xenial-default-build-environment

I'm already seeing errors in Travis in the zproject test:

$ sudo -E apt-get -yq --no-install-suggests --no-install-recommends 
$(travis_apt_get_options) install openjdk-7-jre imagemagick 
generator-scripting-language time

Reading package lists...
Building dependency tree...
Reading state information...
Package openjdk-7-jre is not available, but is referred to by another 
package.

This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'openjdk-7-jre' has no installation candidate

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] gsl/zproject tracing & debugging

2019-05-09 Thread Arnaud Loonstra

Hi all,

I'm currently looking into adding some features to the python_cffi 
binding. I already know how to do it in python but I need the gsl 
generator to do it.


What are best practices for tracing and debugging? I already know 'echo' 
but what is harder is to know what vars are available.


For example I'm now trying to debug the following line:

https://github.com/zeromq/zproject/blob/master/zproject_python_cffi.gsl#L151

which is a for loop:
for my.method.argument by argument.order
...
echo argument
...
endfor

So how to tarce what's available in the argument variable? At first I 
thought these are the argument options from the api xml file. However 
only variadic is available but by_reference not.


Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] zproject api design and binding question

2019-05-07 Thread Arnaud Loonstra
This indeed seems to a problem with at least Python's ctypes binding. 
Perhaps we could mention this somewhere?


I'm now trying the cffi binding. However you'd need to be some wizard to 
get this working without prior knowledge.


I got the binding to build and install. Now trying a simple test to get 
started:


```
from czmq_cffi import *

Zactor.test(True)

output = Zsock(0) # 0 == PAIR
output.connect(b"@inproc://zmsg.test")
assert(output)

input = Zsock(0) # 0 == PAIR
input.bind(b">inproc://zmsg.test")
assert (input);

msg = Zmsg()
assert (msg);
frame = Zframe(b"Hello", 5)
assert (frame);
msg.prepend(frame)
assert (msg.size() == 1)
assert (msg.content_size () == 5);
rc = msg.send(output)
assert (rc == 0)

msg = input.recv(input);
assert (msg)
assert (msg.size() == 1)
assert (msg.content_size() == 5)
```

However it fails:
```
Traceback (most recent call last):
  File "test.py", line 20, in 
msg.prepend(frame);
  File 
"/home/arnaud/src/libsphactor/bindings/py3test/lib/python3.7/site-packages/czmq_cffi-4.2.1-py3.7-linux-x86_64.egg/czmq_cffi/Zmsg.py", 
line 80, in prepend

return utils.lib.zmsg_prepend(self._p, frame_p._p)
TypeError: initializer for ctype 'struct _zframe_t * *' must be a 
pointer to same type, not cdata 'struct _zframe_t *'

```
So how to do that? How to get the pointer from Zrame object?

@Kevin, you here? You wrote the cffi binding generator, not?
I think it would be helpful for others if we create a unittest.

Rg,

Arnaud




On 5/2/19 4:20 PM, Arnaud Loonstra wrote:

Hey all,

I'm using zproject to design and build a library to extend zactor a bit. 
However I'm now running into a design issue when using callbacks.


For example I have in my api:
https://github.com/sphaero/libsphactor/blob/master/api/sphactor.api

     
     Callback function for socket activity
     
     
     
     

So a callback which accepts a zmsg and returns a zmsg.

Works perfectly in C. However when I bind to Python it doesn't work. It 
seems Python(ctypes) only handles returning simple types from callbacks:


https://bugs.python.org/issue5710

I can see this doesn't apply to any api's I've found so for in czmq or 
zyre.


My question is whether it is bad api design from my side? Or are there 
any workarounds or better approaches for this?


Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] zproject api design and binding question

2019-05-02 Thread Arnaud Loonstra

Hey all,

I'm using zproject to design and build a library to extend zactor a bit. 
However I'm now running into a design issue when using callbacks.


For example I have in my api:
https://github.com/sphaero/libsphactor/blob/master/api/sphactor.api


Callback function for socket activity





So a callback which accepts a zmsg and returns a zmsg.

Works perfectly in C. However when I bind to Python it doesn't work. It 
seems Python(ctypes) only handles returning simple types from callbacks:


https://bugs.python.org/issue5710

I can see this doesn't apply to any api's I've found so for in czmq or 
zyre.


My question is whether it is bad api design from my side? Or are there 
any workarounds or better approaches for this?


Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] zhttp example?

2019-05-02 Thread Arnaud Loonstra

Hey Doron,

Thanks for that. That's a really helpful reference!

Rg,

Arnaud

On 4/11/19 1:39 PM, Doron Somech wrote:

Hey Arnaud,

It is a recent addition to czmq. I'm using it in this project: 
https://github.com/mqless/mqless/blob/master/src/mql_server.c.
We also have zhttp_client, and you use zhttp_request and zhttp_response 
with both the client and server.


Regarding the select, microhttpd support either epoll or select. I 
started with select as it is cross-platform, but the plan is to use 
epoll on linux eventually.



On Tue, Apr 2, 2019 at 2:36 PM Arnaud Loonstra <mailto:arn...@sphaero.org>> wrote:


He guys,

Are there any references for using zhttp? Other then selftest?

Out of curiosity why is zhttp using select instead of poll?

https://github.com/zeromq/czmq/blob/master/src/zhttp_server.c#L415

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org <mailto:zeromq-dev@lists.zeromq.org>
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] zproject basic question

2019-04-05 Thread Arnaud Loonstra

Yes, it did. It gave an error even. I just missed it I guess :S

On 4/4/19 2:03 PM, Luca Boccassi wrote:

Nice!

Was there any warning from gsl about the illegal char?

On Thu, 2019-04-04 at 13:25 +0200, Arnaud Loonstra wrote:

Hi Luca & Kevin,

Thanks, so I was right in thinking that zproject should update the
headers. I found I was using an illegal character in my api file. It
now
updates the headers indeed.

I must say that when you get the setup right it's quite a joy to
build
with zproject and czmq together. I'm not doing C stuff a lot but
I've
never been able to build stuff this fast using C. Last hackathon got
me
started!

Rg,

Arnaud

On 4/4/19 12:29 PM, Kevin Sapper wrote:

Hi Arnaud,

I did the same and I worked for me as well.

Cheers Kevin

Luca Boccassi <
luca.bocca...@gmail.com
  


schrieb am Do., 4. Apr. 2019, 12:13:

 On Thu, 2019-04-04 at 10:57 +0200, Arnaud Loonstra wrote:
  > Hey all,
  >
  > I'm testing zproject for a new library. Simple question to
clear it
  > out
  > for me; zproject does generate some header files, I'm just
not sure
  > when
  > which. For example I have setup a simple project with an
api.
  >
  > ie:
  >
  > 
  >  
  >  Constructor, creates a new Sphactor node.
  >  
  >  
  >  
  > etc.
  >
  > Zproject has parsed this and has provided me with a skeleton
with a
  > header include/sphactor.h. If I now update the api file
with:
  >
  >  
  >  Return our sphactor's endpoint, after successful
  > initialization.
  >  The endpoint is usually inproc://
  >  
  >  
  >
  > And rerun zproject. The include/sphactor.h is not updated. I
have to
  > do
  > this manually. Is this correct or is there a way to let
zproject
  > reflect
  > the changes in the api to the header?
  >
  > As reference, here's the project file:
  >
https://github.com/sphaero/libsphactor/blob/master/project.xml

  >
  >
  > Rg,
  >
  > Arnaud

 Hi, I just tried to download the project, generate it with gsl
 project.xml, add that method to the api file and regenerate it
again,
 and it works as expected, the header is updated:

 $ git diff include/sphactor.h
 diff --git a/include/sphactor.h b/include/sphactor.h
 index e1e5767..75ecef4 100644
 --- a/include/sphactor.h
 +++ b/include/sphactor.h
 @@ -45,6 +45,10 @@ SPHACTOR_EXPORT const char *
   SPHACTOR_EXPORT void
   sphactor_set_name (sphactor_t *self, const char *name);

 +//  Set the public name of this sphactor node overriding the
default.
 +SPHACTOR_EXPORT void
 +sphactor_sut_name (sphactor_t *self, const char *name);
 +
   //  Start node, after setting header values.
   //  Returns 0 if OK, -1 if it wasn't possible to start the
node.
   SPHACTOR_EXPORT int

 --
 Kind regards,
 Luca Boccassi
 ___
 zeromq-dev mailing list
 
zeromq-dev@lists.zeromq.org

  

 
https://lists.zeromq.org/mailman/listinfo/zeromq-dev




___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org

https://lists.zeromq.org/mailman/listinfo/zeromq-dev




___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org

https://lists.zeromq.org/mailman/listinfo/zeromq-dev



___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] zproject basic question

2019-04-04 Thread Arnaud Loonstra

Hi Luca & Kevin,

Thanks, so I was right in thinking that zproject should update the 
headers. I found I was using an illegal character in my api file. It now 
updates the headers indeed.


I must say that when you get the setup right it's quite a joy to build 
with zproject and czmq together. I'm not doing C stuff a lot but I've 
never been able to build stuff this fast using C. Last hackathon got me 
started!


Rg,

Arnaud

On 4/4/19 12:29 PM, Kevin Sapper wrote:

Hi Arnaud,

I did the same and I worked for me as well.

Cheers Kevin

Luca Boccassi mailto:luca.bocca...@gmail.com>> 
schrieb am Do., 4. Apr. 2019, 12:13:


On Thu, 2019-04-04 at 10:57 +0200, Arnaud Loonstra wrote:
 > Hey all,
 >
 > I'm testing zproject for a new library. Simple question to clear it
 > out
 > for me; zproject does generate some header files, I'm just not sure
 > when
 > which. For example I have setup a simple project with an api.
 >
 > ie:
 >
 > 
 >      
 >          Constructor, creates a new Sphactor node.
 >          
 >          
 >      
 > etc.
 >
 > Zproject has parsed this and has provided me with a skeleton with a
 > header include/sphactor.h. If I now update the api file with:
 >
 >      
 >          Return our sphactor's endpoint, after successful
 > initialization.
 >          The endpoint is usually inproc://
 >          
 >      
 >
 > And rerun zproject. The include/sphactor.h is not updated. I have to
 > do
 > this manually. Is this correct or is there a way to let zproject
 > reflect
 > the changes in the api to the header?
 >
 > As reference, here's the project file:
 > https://github.com/sphaero/libsphactor/blob/master/project.xml
 >
 >
 > Rg,
 >
 > Arnaud

Hi, I just tried to download the project, generate it with gsl
project.xml, add that method to the api file and regenerate it again,
and it works as expected, the header is updated:

$ git diff include/sphactor.h
diff --git a/include/sphactor.h b/include/sphactor.h
index e1e5767..75ecef4 100644
--- a/include/sphactor.h
+++ b/include/sphactor.h
@@ -45,6 +45,10 @@ SPHACTOR_EXPORT const char *
  SPHACTOR_EXPORT void
      sphactor_set_name (sphactor_t *self, const char *name);

+//  Set the public name of this sphactor node overriding the default.
+SPHACTOR_EXPORT void
+    sphactor_sut_name (sphactor_t *self, const char *name);
+
  //  Start node, after setting header values.
  //  Returns 0 if OK, -1 if it wasn't possible to start the node.
  SPHACTOR_EXPORT int

-- 
Kind regards,

Luca Boccassi
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org <mailto:zeromq-dev@lists.zeromq.org>
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] zproject basic question

2019-04-04 Thread Arnaud Loonstra

Hey all,

I'm testing zproject for a new library. Simple question to clear it out 
for me; zproject does generate some header files, I'm just not sure when 
which. For example I have setup a simple project with an api.


ie:



Constructor, creates a new Sphactor node.



etc.

Zproject has parsed this and has provided me with a skeleton with a 
header include/sphactor.h. If I now update the api file with:



Return our sphactor's endpoint, after successful initialization.
The endpoint is usually inproc://



And rerun zproject. The include/sphactor.h is not updated. I have to do 
this manually. Is this correct or is there a way to let zproject reflect 
the changes in the api to the header?


As reference, here's the project file: 
https://github.com/sphaero/libsphactor/blob/master/project.xml


Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] zhttp example?

2019-04-02 Thread Arnaud Loonstra

He guys,

Are there any references for using zhttp? Other then selftest?

Out of curiosity why is zhttp using select instead of poll?

https://github.com/zeromq/czmq/blob/master/src/zhttp_server.c#L415

Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] New version of czmq soon

2019-02-10 Thread Arnaud Loonstra

On 2/10/19 12:46 PM, Luca Boccassi wrote:

Hi,

Unless anybody has any objection, I'll tag a new version of czmq later 
tonight, after some more validation. This way it can make it for the 
next versions of Debian and Ubuntu.


Kind regards,
Luca Boccassi


Would be great to have latest fixes in Buster indeed. The only thing I 
had on mind was to sockify zloop. But I have to dive into zproject first 
for that. Freeze is in 2 days, no?


Rg,

Arnaud
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] pwnat and zyre

2019-01-31 Thread Arnaud Loonstra
"when a client wants to connect, the client (which knows the server IP address) 
sends an ICMP Time Exceeded packet to the server."

So it still needs to know the address to connect to. Still an interesting 
approach.

I just woke up. Freshen up and I'll head to HSBXL.

ArnaudOn 31 Jan 2019 00:30, Benjamin Henrion  wrote:
>
> The mysterious nat2nat tunnel tool i mentioned:
>
> https://samy.pl/pwnat/
>
> If zyre could use the same...
>
> -- 
> Benjamin Henrion (zoobab)
> Email: zoobab at gmail.com
> Mobile: +32-484-566109
> Web: http://www.zoobab.com
> FFII.org Brussels
> "In July 2005, after several failed attempts to legalise software patents in 
> Europe, the patent establishment changed its strategy. Instead of explicitly 
> seeking to sanction the patentability of software, they are now seeking to 
> create a central European patent court, which would establish and enforce 
> patentability rules in their favor, without any possibility of correction by 
> competing courts or democratically elected legislators."
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] FOSDEM 2019 - annual ZeroMQ meetup/hackaton - NOTE LOCATION CHANGE FROM LAST YEAR

2019-01-30 Thread Arnaud Loonstra
I'm arriving tonight as well @Meininger. If I'm on time I'll try to come 
to Delirium as well.


Rg,

Arnaud

On 1/30/19 1:01 PM, Benjamin Henrion wrote:

On Wed, Jan 30, 2019 at 12:44 PM Luca Boccassi  wrote:


Shall we meet at 21.30 at Delirium Cafe? We can stay there so that
folks arriving a bit later can join us

https://goo.gl/maps/Zq3oYrFr9S42


See you there! I recommend the Cactus beer!


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] BDFL team

2019-01-03 Thread Arnaud Loonstra

Congrats to you both and to zeromq in general!
We should drink to that in Brussels next month.

And happy new year btw :)

Rg,

Arnaud

On 1/3/19 12:41 PM, Doron Somech wrote:

Hi All,

More than two years has passed since Pieter handed me the BDFL role.
I'm taking the job seriously and as a long term job.

Open source maintainer job is hard. The project has life of is own, and 
so am I. In the last two years my two children have born plus a full 
time job have left me without a lot of time for zeromq. The good news is 
that now I have more time and for the time being no full time job.


Luckily for our community we have Luca Boccassi, which led the community 
amazingly in the last two years. Answering all the questions, merging 
the pull requests, releasing new versions and arranging the upcoming 
Hackathon.


I'm very happy to announce the Luca accepted my invitation to join me in 
the BDFLs team, thank you Luca.


Doron

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


  1   2   3   >