static int nn_xrespondent_create (void *hint, struct nn_sockbase **sockbase) { struct nn_xrespondent *self; self = nn_alloc (sizeof (struct nn_xrespondent), "socket (xrespondent)"); alloc_assert (self); nn_xrespondent_init (self, &nn_xrespondent_sockbase_vfptr, hint); *sockbase = &self->sockbase; return 0; }
static void nn_respondent_init (struct nn_respondent *self, const struct nn_sockbase_vfptr *vfptr, void *hint) { nn_xrespondent_init (&self->xrespondent, vfptr, hint); self->flags = 0; }