Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* The abillity to `lock()` and `unlock()` sockets is removed.
* Renders it safe to serialize 'nano' and 'aio' objects - they will be inactive when unserialized.
* Unified Windows build system now compiles 'libmbedtls' and 'libnng' from source even on R <= 4.1 using Rtools40 or earlier.
* Requires 'libnng' >= 1.10.0.

# nanonext 1.5.0

Expand Down
4 changes: 2 additions & 2 deletions R/aio.R
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ send_aio <- function(con, data, mode = c("serial", "raw"), timeout = NULL, pipe
#'
#' # Signalling a condition variable
#'
#' s1 <- socket("pair", listen = "tcp://127.0.0.1:6546")
#' s1 <- socket("pair", listen = "inproc://cv-example")
#' cv <- cv()
#' msg <- recv_aio(s1, timeout = 100, cv = cv)
#' until(cv, 10L)
#' msg$data
#' close(s1)
#'
#' # in another process in parallel
#' s2 <- socket("pair", dial = "tcp://127.0.0.1:6546")
#' s2 <- socket("pair", dial = "inproc://cv-example")
#' res <- send_aio(s2, c(1.1, 2.2, 3.3), mode = "raw", timeout = 100)
#' close(s2)
#'
Expand Down
4 changes: 2 additions & 2 deletions R/context.R
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ close.nanoContext <- function(con, ...) invisible(.Call(rnng_ctx_close, con))
#' @inheritSection send Send Modes
#'
#' @examples
#' req <- socket("req", listen = "tcp://127.0.0.1:6546")
#' rep <- socket("rep", dial = "tcp://127.0.0.1:6546")
#' req <- socket("req", listen = "inproc://req-example")
#' rep <- socket("rep", dial = "inproc://req-example")
#'
#' ctxq <- context(req)
#' ctxp <- context(rep)
Expand Down
8 changes: 4 additions & 4 deletions R/listdial.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@
#'
#' @examples
#' socket <- socket("rep")
#' dial(socket, url = "tcp://127.0.0.1:6545", autostart = FALSE)
#' dial(socket, url = "inproc://nanodial", autostart = FALSE)
#' socket$dialer
#' start(socket$dialer[[1]])
#' socket$dialer
#' close(socket$dialer[[1]])
#' close(socket)
#'
#' nano <- nano("bus")
#' nano$dial(url = "tcp://127.0.0.1:6546", autostart = FALSE)
#' nano$dial(url = "inproc://nanodial", autostart = FALSE)
#' nano$dialer
#' nano$dialer_start()
#' nano$dialer
Expand Down Expand Up @@ -133,15 +133,15 @@ dial <- function(socket, url = "inproc://nanonext", tls = NULL, autostart = TRUE
#'
#' @examples
#' socket <- socket("req")
#' listen(socket, url = "tcp://127.0.0.1:6547", autostart = FALSE)
#' listen(socket, url = "inproc://nanolisten", autostart = FALSE)
#' socket$listener
#' start(socket$listener[[1]])
#' socket$listener
#' close(socket$listener[[1]])
#' close(socket)
#'
#' nano <- nano("bus")
#' nano$listen(url = "tcp://127.0.0.1:6548", autostart = FALSE)
#' nano$listen(url = "inproc://nanolisten", autostart = FALSE)
#' nano$listener
#' nano$listener_start()
#' nano$listener
Expand Down
5 changes: 2 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ knitr::opts_chunk$set(

<!-- badges: start -->
[![CRAN status](https://www.r-pkg.org/badges/version/nanonext)](https://CRAN.R-project.org/package=nanonext)
[![R-multiverse status](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fcommunity.r-multiverse.org%2Fapi%2Fpackages%2Fnanonext&query=%24.Version&label=r-multiverse)](https://community.r-multiverse.org/nanonext)
[![R-universe status](https://shikokuchuo.r-universe.dev/badges/nanonext?color=3f72af)](https://shikokuchuo.r-universe.dev/nanonext)
[![R-CMD-check](https://github.com/shikokuchuo/nanonext/workflows/R-CMD-check/badge.svg)](https://github.com/shikokuchuo/nanonext/actions)
[![codecov](https://codecov.io/gh/shikokuchuo/nanonext/graph/badge.svg)](https://app.codecov.io/gh/shikokuchuo/nanonext)
Expand Down Expand Up @@ -136,7 +135,7 @@ Install the latest release from CRAN:
install.packages("nanonext")
```

The current development version is available from R-universe:
Or the current development version from R-universe:

```{r universe, eval=FALSE}
install.packages("nanonext", repos = "https://shikokuchuo.r-universe.dev")
Expand All @@ -146,7 +145,7 @@ install.packages("nanonext", repos = "https://shikokuchuo.r-universe.dev")

#### Linux / Mac / Solaris

Installation from source requires 'libnng' >= v1.6.0 and 'libmbedtls' >= 2.5.0 (suitable installations are automatically detected), or else 'cmake' to compile 'libnng' v1.10.1 and 'libmbedtls' v3.6.2 included within the package sources.
Installation from source requires 'libnng' >= v1.10.0 and 'libmbedtls' >= 2.5.0 (suitable installations are automatically detected), or else 'cmake' to compile 'libnng' v1.10.1 and 'libmbedtls' v3.6.2 included within the package sources.

**It is recommended for optimal performance and stability to let the package automatically compile bundled versions of 'libmbedtls' and 'libnng' during installation.** To ensure the libraries are compiled from source even if system installations are present, set the `NANONEXT_LIBS` environment variable prior to installation e.g. by `Sys.setenv(NANONEXT_LIBS = 1)`.

Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

[![CRAN
status](https://www.r-pkg.org/badges/version/nanonext)](https://CRAN.R-project.org/package=nanonext)
[![R-multiverse
status](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fcommunity.r-multiverse.org%2Fapi%2Fpackages%2Fnanonext&query=%24.Version&label=r-multiverse)](https://community.r-multiverse.org/nanonext)
[![R-universe
status](https://shikokuchuo.r-universe.dev/badges/nanonext?color=3f72af)](https://shikokuchuo.r-universe.dev/nanonext)
[![R-CMD-check](https://github.com/shikokuchuo/nanonext/workflows/R-CMD-check/badge.svg)](https://github.com/shikokuchuo/nanonext/actions)
Expand Down Expand Up @@ -166,7 +164,7 @@ Install the latest release from CRAN:
install.packages("nanonext")
```

The current development version is available from R-universe:
Or the current development version from R-universe:

``` r
install.packages("nanonext", repos = "https://shikokuchuo.r-universe.dev")
Expand All @@ -176,7 +174,7 @@ install.packages("nanonext", repos = "https://shikokuchuo.r-universe.dev")

#### Linux / Mac / Solaris

Installation from source requires ‘libnng’ \>= v1.6.0 and ‘libmbedtls’
Installation from source requires ‘libnng’ \>= v1.10.0 and ‘libmbedtls’
\>= 2.5.0 (suitable installations are automatically detected), or else
‘cmake’ to compile ‘libnng’ v1.10.1 and ‘libmbedtls’ v3.6.2 included
within the package sources.
Expand Down
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ fi

echo "#include <nng/nng.h>
int main() {
#if NNG_MAJOR_VERSION < 1 || NNG_MAJOR_VERSION == 1 && NNG_MINOR_VERSION < 6
#if NNG_MAJOR_VERSION < 1 || NNG_MAJOR_VERSION == 1 && NNG_MINOR_VERSION < 10
*(void *) 0 = 0;
#endif
}" | ${CC} ${NNG_CFLAGS} -xc - -o /dev/null > /dev/null 2>&1
Expand All @@ -140,7 +140,7 @@ fi

if [ $? -ne 0 ]
then
echo "Existing 'libnng' >= 1.6 not found"
echo "Existing 'libnng' >= 1.10 not found"
echo "Detecting 'cmake'..."
which cmake
if [ $? -ne 0 ]
Expand Down
4 changes: 2 additions & 2 deletions man/dial.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/listen.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/recv_aio.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/reply.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified src/nng-110.tar.xz
Binary file not shown.
Loading