'\" t .\" Title: nng_pull_open .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 2.0.23 .\" Date: 2025-02-02 .\" Manual: NNG Reference Manual .\" Source: \ \& .\" Language: English .\" .TH "NNG_PULL_OPEN" "3" "2025-02-02" "\ \&" "NNG Reference Manual" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "NAME" nng_pull_open \- create pull socket .SH "SYNOPSIS" .sp .if n .RS 4 .nf .fam C #include <nng/nng.h> #include <nng/protocol/pipeline0/pull.h> int nng_pull0_open(nng_socket *s); int nng_pull0_open_raw(nng_socket *s); .fam .fi .if n .RE .SH "DESCRIPTION" .sp The \f(CRnng_pull0_open()\fP function creates a \fIpull\fP version 0 socket and returns it at the location pointed to by \fIs\fP. .sp The \f(CRnng_pull0_open_raw()\fP function creates a \fIpull\fP version 0 socket in raw mode and returns it at the location pointed to by \fIs\fP. .SH "RETURN VALUES" .sp These functions return 0 on success, and non\-zero otherwise. .SH "ERRORS" .sp \f(CRNNG_ENOMEM\fP .RS 4 Insufficient memory is available. .RE .sp \f(CRNNG_ENOTSUP\fP .RS 4 The protocol is not supported. .RE .SH "SEE ALSO" .sp nng_socket(5), nng_pull(7), nng_push(7), nng(7)