| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/nanonext-package.R |
| 3 |
\docType{package} |
| 4 |
\name{nanonext-package} |
| 5 |
\alias{nanonext} |
| 6 |
\alias{nanonext-package} |
| 7 |
\title{nanonext: NNG (Nanomsg Next Gen) Lightweight Messaging Library} |
| 8 |
\description{ |
| 9 |
R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is a socket |
| 10 |
library for reliable, high-performance messaging over in-process, IPC, TCP, |
| 11 |
WebSocket and secure TLS transports. Implements 'Scalability Protocols', a |
| 12 |
standard for common communications patterns including publish/subscribe, |
| 13 |
request/reply and service discovery. As its own threaded concurrency |
| 14 |
framework, provides a toolkit for asynchronous programming and distributed |
| 15 |
computing. Intuitive 'aio' objects resolve automatically when asynchronous |
| 16 |
operations complete, and synchronisation primitives allow R to wait upon |
| 17 |
events signalled by concurrent threads. |
| 18 |
} |
| 19 |
\section{Usage notes}{ |
| 20 |
|
| 21 |
|
| 22 |
\pkg{nanonext} offers 2 equivalent interfaces: a functional interface, and an |
| 23 |
object-oriented interface. |
| 24 |
|
| 25 |
The primary object in the functional interface is the Socket. Use \code{\link[=socket]{socket()}} |
| 26 |
to create a socket and dial or listen at an address. The socket is then |
| 27 |
passed as the first argument of subsequent actions such as \code{send()} or |
| 28 |
\code{recv()}. |
| 29 |
|
| 30 |
The primary object in the object-oriented interface is the nano object. Use |
| 31 |
\code{\link[=nano]{nano()}} to create a nano object which encapsulates a Socket and |
| 32 |
Dialer/Listener. Methods such as \verb{$send()} or \verb{$recv()} can then be accessed |
| 33 |
directly from the object. |
| 34 |
} |
| 35 |
|
| 36 |
\section{Documentation}{ |
| 37 |
|
| 38 |
|
| 39 |
Guide to the implemented protocols for sockets: \link{protocols} |
| 40 |
|
| 41 |
Guide to the supported transports for dialers and listeners: |
| 42 |
\link{transports} |
| 43 |
|
| 44 |
Guide to the options that can be inspected and set using: \link{opt} / |
| 45 |
\link{opt<-} |
| 46 |
} |
| 47 |
|
| 48 |
\section{Reference Manual}{ |
| 49 |
|
| 50 |
|
| 51 |
\code{vignette("nanonext", package = "nanonext")} |
| 52 |
} |
| 53 |
|
| 54 |
\section{Conceptual overview}{ |
| 55 |
|
| 56 |
|
| 57 |
NNG presents a socket view of networking. A socket implements precisely one |
| 58 |
protocol, such as 'bus', etc. |
| 59 |
|
| 60 |
Each socket can be used to send and receive messages (if the protocol |
| 61 |
supports it, and implements the appropriate protocol semantics). For example, |
| 62 |
the 'sub' protocol automatically filters incoming messages to discard topics |
| 63 |
that have not been subscribed. |
| 64 |
|
| 65 |
NNG sockets are message-oriented, and messages are either delivered wholly, |
| 66 |
or not at all. Partial delivery is not possible. Furthermore, NNG does not |
| 67 |
provide any other delivery or ordering guarantees: messages may be dropped or |
| 68 |
reordered (some protocols, such as 'req' may offer stronger guarantees by |
| 69 |
performing their own retry and validation schemes). |
| 70 |
|
| 71 |
Each socket can have zero, one, or many endpoints, which are either listeners |
| 72 |
or dialers (a given socket may use listeners, dialers, or both). These |
| 73 |
endpoints provide access to underlying transports, such as TCP, etc. |
| 74 |
|
| 75 |
Each endpoint is associated with a URL, which is a service address. For |
| 76 |
dialers, this is the service address that is contacted, whereas for listeners |
| 77 |
this is where new connections will be accepted. |
| 78 |
} |
| 79 |
|
| 80 |
\section{Links}{ |
| 81 |
|
| 82 |
|
| 83 |
NNG: \url{https://nng.nanomsg.org/} \cr |
| 84 |
Mbed TLS: \url{https://www.trustedfirmware.org/projects/mbed-tls/} |
| 85 |
} |
| 86 |
|
| 87 |
\seealso{ |
| 88 |
Useful links: |
| 89 |
\itemize{ |
| 90 |
\item \url{https://nanonext.r-lib.org} |
| 91 |
\item \url{https://github.com/r-lib/nanonext} |
| 92 |
\item Report bugs at \url{https://github.com/r-lib/nanonext/issues} |
| 93 |
} |
| 94 |
|
| 95 |
} |
| 96 |
\author{ |
| 97 |
\strong{Maintainer}: Charlie Gao \email{[email protected]} (\href{https://orcid.org/0000-0002-0750-061X}{ORCID}) |
| 98 |
|
| 99 |
Authors: |
| 100 |
\itemize{ |
| 101 |
\item Charlie Gao \email{[email protected]} (\href{https://orcid.org/0000-0002-0750-061X}{ORCID}) |
| 102 |
} |
| 103 |
|
| 104 |
Other contributors: |
| 105 |
\itemize{ |
| 106 |
\item Posit Software, PBC (\href{https://ror.org/03wc8by49}{ROR}) [copyright holder, funder] |
| 107 |
\item Hibiki AI Limited [copyright holder] |
| 108 |
\item Staysail Systems, Inc. (NNG library) [copyright holder] |
| 109 |
\item Capitar IT Group BV (NNG library) [copyright holder] |
| 110 |
\item The Mbed TLS Contributors (Mbed TLS library) [copyright holder] |
| 111 |
\item Pierre L'Ecuyer (RngStreams library) [copyright holder] |
| 112 |
\item sakura authors (Serialization hooks) [copyright holder] |
| 113 |
\item R Consortium (\href{https://ror.org/01z833950}{ROR}) [funder] |
| 114 |
} |
| 115 |
|
| 116 |
} |