Skip to content

Commit b54fa88

Browse files
committed
remove experimental send xptr data
1 parent 4b6088b commit b54fa88

File tree

4 files changed

+2
-11
lines changed

4 files changed

+2
-11
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: nanonext
22
Type: Package
33
Title: NNG (Nanomsg Next Gen) Lightweight Messaging Library
4-
Version: 0.9.2.9034
4+
Version: 0.9.2.9035
55
Description: R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is
66
a socket library providing high-performance scalability protocols, a
77
cross-platform standard for messaging and communications. Serves as a

NEWS.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nanonext 0.9.2.9034 (development)
1+
# nanonext 0.9.2.9035 (development)
22

33
#### New Features
44

@@ -24,7 +24,6 @@
2424
+ Permits sending of NULL, in which case an empty vector of the corresponding mode is received.
2525
+ Character vectors containing empty characters in the middle are now received correctly.
2626
+ For character vectors, respects original encoding and no longer performs automatic conversion to UTF8.
27-
+ Experimental: sending of external pointer data (as char).
2827
* The unresolved value for an Aio is now the symbol ` unresolvedValue ` rather than a classed logical NA. Continue to use `unresolved()` to check for resolution.
2928
* Base64 and SHA hash functions now use big-endian representation for serialization (where this is performed) to ensure consistency across all systems (fixes #14, a regression in nanonext 0.9.2).
3029
* Package installation now succeeds in certain environments where 'cmake' failed to make 'libmbedtls' detectable after building (thanks @kendonB #13).

src/core.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,6 @@ void nano_encode(nano_buf *enc, SEXP object) {
236236
case RAWSXP:
237237
NANO_INIT(enc, (unsigned char *) STDVEC_DATAPTR(object), XLENGTH(object));
238238
break;
239-
case EXTPTRSXP: ;
240-
const char *buf = R_ExternalPtrAddr(object);
241-
if (buf != NULL) {
242-
NANO_INIT(enc, (unsigned char *) buf, strlen(buf));
243-
break;
244-
}
245239
case NILSXP:
246240
NANO_INIT(enc, NULL, 0);
247241
break;

tests/tests.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,6 @@ nanotest(!unresolved(msg))
203203
nanotest(is.integer(req$send(c(TRUE, FALSE, TRUE), mode = 2L, block = 500)))
204204
nanotestaio(msg <- recv_aio(ctx, mode = 6L, timeout = 500))
205205
nanotest(is.logical(call_aio(msg)$data))
206-
nanotest(is.integer(req$send(ctx, mode = 2L, block = 500)))
207-
nanotest(is.raw(recv(ctx, mode = 8L, block = 500L)))
208206
nanotestaio(err <- send_aio(ctx, msg, mode = 2L))
209207
nanotestn(stop_aio(err))
210208
nanotesterr(err$result, "active")

0 commit comments

Comments
 (0)