Skip to content

Instantly share code, notes, and snippets.

Pieter Hintjens hintjens

Block or report user

Report or block hintjens

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hintjens
hintjens / README.md
Created Feb 14, 2016
GYP --generator-output issue
View README.md

GIST to reproduce this issue.

View Android.mk
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libczmq
LOCAL_SRC_FILES := ../../builds/android/prefix/arm-linux-androideabi-4.9/lib/libczmq.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := libzmq
LOCAL_SRC_FILES := ../../builds/android/prefix/arm-linux-androideabi-4.9/lib/libzmq.a
View CtrlcTest.java
# CtrlcTest.java
import org.zeromq.czmq.Zmsg;
import org.zeromq.zyre.Zyre;
import static java.lang.System.*;
import java.util.Scanner;
public class CtrlcTest {
@hintjens
hintjens / testcase1.c
Last active Oct 29, 2015
Test case for issue 1608
View testcase1.c
// Test case for #1608
#include <czmq.h>
#define BATCH_SIZE 5000
static void
sink_actor (zsock_t *pipe, void *args)
{
int latency [BATCH_SIZE];
int count = 0;
View gist:545d884f9be9346b5237
<class
name = "sadl_msg"
title = "The SADL Message Protocol"
script = "zproto_codec_c"
package_dir = "."
>
This implements the wireframe SADL protocol
<message name = "PUBLISH">
Client sends data to a topic
View gist:f9ffbadbf34d19d5b8bb
<class
name = "hello"
title = "The Hello Protocol"
script = "zproto_codec_c"
package_dir = "."
>
This is a hello world example.
<message name = "HELLO">
Client sends request
<field name = "request" type = "string" />
View zyre_perf.c
/* =========================================================================
zyre_perf - bulk test tool
This tool starts a number R of responders, then sends M messages to each
responder, and waits for responses.
This test runs in a single process and does the following:
A master thread sends N "shout" messages to R responders
Each responder sends a unicast "whisper" response back to the master
View gist:df61769ed602f7bbd39f
zactor_t *server = zactor_new (mlm_server, "malamute");
zsock_send (server, "ssi", "SET", "server/verbose", false);
zsock_send (server, "sss", "SET", "server/timeout", "0");
zsock_send (server, "ss", "BIND", "inproc://some-port");
View issue72.c
#include <malamute.h>
int main (void) {
zactor_t *server = zactor_new (mlm_server, NULL);
zsock_send (server, "sss", "SET", "server/verbose", "1");
zsock_send (server, "ss", "BIND", "inproc://testcase");
mlm_client_verbose = true;
mlm_client_t *client = mlm_client_new ();
int rc = mlm_client_connect (client, "inproc://testcase", 2000, "");
View gist:a31e013146d9daa0a3a9
/* =========================================================================
hydrad - command-line service
Copyright (c) the Contributors as noted in the AUTHORS file.
This file is part of the Hydra Project
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
=========================================================================
You can’t perform that action at this time.