Skip to content

Commit 5656fcc

Browse files
committed
renames next_config() nextmode()
1 parent 4711f91 commit 5656fcc

File tree

14 files changed

+47
-47
lines changed

14 files changed

+47
-47
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.10.2.9023
4+
Version: 0.10.2.9024
55
Description: R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is
66
a socket library implementing 'Scalability Protocols', a reliable,
77
high-performance standard for common communications patterns including

NAMESPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export(nano)
6161
export(ncurl)
6262
export(ncurl_aio)
6363
export(ncurl_session)
64-
export(next_config)
64+
export(nextmode)
6565
export(nng_error)
6666
export(nng_version)
6767
export(opt)

NEWS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# nanonext 0.10.2.9023 (development)
1+
# nanonext 0.10.2.9024 (development)
22

33
#### New Features
44

5-
* `next_config()` configures settings for send mode 'next'. Registers hook functions for custom serialization and unserialization of reference objects (such as those accessed via an external pointer).
5+
* `nextmode()` configures settings for send mode 'next'. Registers hook functions for custom serialization and unserialization of reference objects (such as those accessed via an external pointer).
66
* `.until()` contains revised behaviour for this synchronisation primitive, returning FALSE instead of TRUE if the timeout has been reached. This function will replace `until()` in a future package version.
77

88
#### Updates

R/sendrecv.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@
6464
#' corresponding to the vector sent should be used.
6565
#'
6666
#' Mode 'next' sends serialised R objects, with native extensions enabled by
67-
#' \code{\link{next_config}}. This allows 'refhook' functions to be
68-
#' registered for custom serialization and unserialization of reference
69-
#' objects, such as those accessed via an external pointer. When receiving,
70-
#' mode 'serial' should be used as 'next' sends are fully compatible.
67+
#' \code{\link{nextmode}}. This allows 'refhook' functions to be registered
68+
#' for custom serialization and unserialization of reference objects, such
69+
#' as those accessed via an external pointer. When receiving, mode 'serial'
70+
#' should be used as 'next' sends are fully compatible.
7171
#'
7272
#' @seealso \code{\link{send_aio}} for asynchronous send.
7373
#' @examples

R/utils.R

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ weakref_key <- function(w) .Call(rnng_weakref_key, w)
335335
#'
336336
weakref_value <- function(w) .Call(rnng_weakref_value, w)
337337

338-
#' Configure Next Mode
338+
#' Next Mode Settings
339339
#'
340340
#' Configures send mode 'next'. By registering 'refhook' functions for
341341
#' serialization and unserialization, allows sending and receiving reference
@@ -365,15 +365,15 @@ weakref_value <- function(w) .Call(rnng_weakref_value, w)
365365
#' package environments and the Global Environment).
366366
#'
367367
#' @examples
368-
#' cfg <- next_config(inhook = function(x) serialize(x, NULL),
369-
#' outhook = unserialize,
370-
#' mark = TRUE)
368+
#' cfg <- nextmode(inhook = function(x) serialize(x, NULL),
369+
#' outhook = unserialize,
370+
#' mark = TRUE)
371371
#' cfg
372372
#'
373-
#' next_config(NULL, NULL)
374-
#' print(next_config())
373+
#' nextmode(NULL, NULL)
374+
#' print(nextmode())
375375
#'
376376
#' @export
377377
#'
378-
next_config <- function(inhook, outhook, mark = FALSE)
379-
invisible(.Call(rnng_next_config, if (missing(inhook)) "" else inhook, if (missing(outhook)) "" else outhook, mark))
378+
nextmode <- function(inhook, outhook, mark = FALSE)
379+
invisible(.Call(rnng_next_mode, if (missing(inhook)) "" else inhook, if (missing(outhook)) "" else outhook, mark))

man/next_config.Rd renamed to man/nextmode.Rd

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/reply.Rd

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/request.Rd

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/send.Rd

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/send_aio.Rd

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)