Ejemplo n.º 1
0
static void nn_sub_init (struct nn_sub *self,
    const struct nn_sockbase_vfptr *vfptr, void *hint)
{
    nn_sockbase_init (&self->sockbase, vfptr, hint);
    nn_excl_init (&self->excl);
    nn_trie_init (&self->trie);
}
Ejemplo n.º 2
0
static int nn_xpair_init (struct nn_xpair *self,
    const struct nn_sockbase_vfptr *vfptr)
{
    int rc;

    rc = nn_sockbase_init (&self->sockbase, vfptr);
    if (rc < 0)
        return rc;

    nn_excl_init (&self->excl);

    return 0;
}
Ejemplo n.º 3
0
Archivo: xpair.c Proyecto: 4ker/nanomsg
static void nn_xpair_init (struct nn_xpair *self,
    const struct nn_sockbase_vfptr *vfptr, void *hint)
{
    nn_sockbase_init (&self->sockbase, vfptr, hint);
    nn_excl_init (&self->excl);
}
Ejemplo n.º 4
0
void nn_xrespondent_init (struct nn_xrespondent *self,
    const struct nn_sockbase_vfptr *vfptr, void *hint)
{
    nn_sockbase_init (&self->sockbase, vfptr, hint);
    nn_excl_init (&self->excl);
}