Searched refs:NNG_FLAG_ALLOC (Results 1 – 10 of 10) sorted by relevance
/dports/net/nng/nng-1.5.2/demo/reqrep/ |
H A D | reqrep.c | 108 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 D | nng_recv.3.adoc | 36 `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 D | nng_send.3.adoc | 50 `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 D | nng_free.3.adoc | 29 xref:nng_recv.3.adoc[`nng_recv()`] with the `NNG_FLAG_ALLOC` flag.
|
H A D | nng_alloc.3.adoc | 33 the flag `NNG_FLAG_ALLOC`. Alternatively, it can be freed when no
|
/dports/net/nng/nng-1.5.2/tests/ |
H A D | stats.c | 61 So(nng_recv(s2, &buf, &sz, NNG_FLAG_ALLOC) == 0);
|
H A D | nonblock.c | 59 NNG_FLAG_NONBLOCK | NNG_FLAG_ALLOC); in repthr()
|
/dports/net/nng/nng-1.5.2/src/core/ |
H A D | sock_test.c | 200 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 D | nng.c | 87 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 D | nng.h | 662 #define NNG_FLAG_ALLOC 1u // Recv to allocate receive buffer macro
|