Home
last modified time | relevance | path

Searched refs:NNG_FLAG_ALLOC (Results 1 – 10 of 10) sorted by relevance

/dports/net/nng/nng-1.5.2/demo/reqrep/
H A Dreqrep.c108 if ((rv = nng_recv(sock, &buf, &sz, NNG_FLAG_ALLOC)) != 0) { in server()
126 rv = nng_send(sock, buf, sz, NNG_FLAG_ALLOC); in server()
180 if ((rv = nng_recv(sock, &buf, &sz, NNG_FLAG_ALLOC)) != 0) { in client()
/dports/net/nng/nng-1.5.2/docs/man/
H A Dnng_recv.3.adoc36 `NNG_FLAG_ALLOC`::
47 with the `NNG_FLAG_ALLOC` flag) in a call to xref:nng_send.3.adoc[`nng_send()`].
49 If the special flag `NNG_FLAG_ALLOC` (see above) is not specified, then the
63 TIP: The `NNG_FLAG_ALLOC` flag can be used to reduce data copies, thereby
H A Dnng_send.3.adoc50 `NNG_FLAG_ALLOC`::
53 the `NNG_FLAG_ALLOC` flag.
60 TIP: The `NNG_FLAG_ALLOC` flag can be used to reduce data copies, thereby
69 IMPORTANT: When using `NNG_FLAG_ALLOC`, it is important that the value of _size_
H A Dnng_free.3.adoc29 xref:nng_recv.3.adoc[`nng_recv()`] with the `NNG_FLAG_ALLOC` flag.
H A Dnng_alloc.3.adoc33 the flag `NNG_FLAG_ALLOC`. Alternatively, it can be freed when no
/dports/net/nng/nng-1.5.2/tests/
H A Dstats.c61 So(nng_recv(s2, &buf, &sz, NNG_FLAG_ALLOC) == 0);
H A Dnonblock.c59 NNG_FLAG_NONBLOCK | NNG_FLAG_ALLOC); in repthr()
/dports/net/nng/nng-1.5.2/src/core/
H A Dsock_test.c200 NUTS_PASS(nng_recv(s2, &buf, &sz, NNG_FLAG_ALLOC)); in test_send_recv()
240 NUTS_PASS(nng_recv(s2, &buf, &sz, NNG_FLAG_ALLOC)); in test_send_recv_zero_length()
278 NUTS_PASS(nng_recv(s2, &buf, &sz, NNG_FLAG_ALLOC)); in test_late_connection()
/dports/net/nng/nng-1.5.2/src/
H A Dnng.c87 if ((rv = nng_recvmsg(s, &msg, flags & ~(NNG_FLAG_ALLOC))) != 0) { in nng_recv()
90 if (!(flags & NNG_FLAG_ALLOC)) { in nng_recv()
164 if (flags & NNG_FLAG_ALLOC) { in nng_send()
/dports/net/nng/nng-1.5.2/include/nng/
H A Dnng.h662 #define NNG_FLAG_ALLOC 1u // Recv to allocate receive buffer macro