| 1 |
# nanonext - Package ----------------------------------------------------------- |
| 2 |
|
| 3 |
#' nanonext: NNG (Nanomsg Next Gen) Lightweight Messaging Library |
| 4 |
#' |
| 5 |
#' R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is a socket |
| 6 |
#' library for reliable, high-performance messaging over in-process, IPC, TCP, |
| 7 |
#' WebSocket and secure TLS transports. Implements 'Scalability Protocols', a |
| 8 |
#' standard for common communications patterns including publish/subscribe, |
| 9 |
#' request/reply and service discovery. As its own threaded concurrency |
| 10 |
#' framework, provides a toolkit for asynchronous programming and distributed |
| 11 |
#' computing. Intuitive 'aio' objects resolve automatically when asynchronous |
| 12 |
#' operations complete, and synchronisation primitives allow R to wait upon |
| 13 |
#' events signalled by concurrent threads. |
| 14 |
#' |
| 15 |
#' @section Usage notes: |
| 16 |
#' |
| 17 |
#' \pkg{nanonext} offers 2 equivalent interfaces: a functional interface, and an |
| 18 |
#' object-oriented interface. |
| 19 |
#' |
| 20 |
#' The primary object in the functional interface is the Socket. Use [socket()] |
| 21 |
#' to create a socket and dial or listen at an address. The socket is then |
| 22 |
#' passed as the first argument of subsequent actions such as `send()` or |
| 23 |
#' `recv()`. |
| 24 |
#' |
| 25 |
#' The primary object in the object-oriented interface is the nano object. Use |
| 26 |
#' [nano()] to create a nano object which encapsulates a Socket and |
| 27 |
#' Dialer/Listener. Methods such as `$send()` or `$recv()` can then be accessed |
| 28 |
#' directly from the object. |
| 29 |
#' |
| 30 |
#' @section Documentation: |
| 31 |
#' |
| 32 |
#' Guide to the implemented protocols for sockets: [protocols] |
| 33 |
#' |
| 34 |
#' Guide to the supported transports for dialers and listeners: |
| 35 |
#' [transports] |
| 36 |
#' |
| 37 |
#' Guide to the options that can be inspected and set using: [opt] / |
| 38 |
#' [opt<-] |
| 39 |
#' |
| 40 |
#' @section Reference Manual: |
| 41 |
#' |
| 42 |
#' `vignette("nanonext", package = "nanonext")` |
| 43 |
#' |
| 44 |
#' @section Conceptual overview: |
| 45 |
#' |
| 46 |
#' NNG presents a socket view of networking. A socket implements precisely one |
| 47 |
#' protocol, such as 'bus', etc. |
| 48 |
#' |
| 49 |
#' Each socket can be used to send and receive messages (if the protocol |
| 50 |
#' supports it, and implements the appropriate protocol semantics). For example, |
| 51 |
#' the 'sub' protocol automatically filters incoming messages to discard topics |
| 52 |
#' that have not been subscribed. |
| 53 |
#' |
| 54 |
#' NNG sockets are message-oriented, and messages are either delivered wholly, |
| 55 |
#' or not at all. Partial delivery is not possible. Furthermore, NNG does not |
| 56 |
#' provide any other delivery or ordering guarantees: messages may be dropped or |
| 57 |
#' reordered (some protocols, such as 'req' may offer stronger guarantees by |
| 58 |
#' performing their own retry and validation schemes). |
| 59 |
#' |
| 60 |
#' Each socket can have zero, one, or many endpoints, which are either listeners |
| 61 |
#' or dialers (a given socket may use listeners, dialers, or both). These |
| 62 |
#' endpoints provide access to underlying transports, such as TCP, etc. |
| 63 |
#' |
| 64 |
#' Each endpoint is associated with a URL, which is a service address. For |
| 65 |
#' dialers, this is the service address that is contacted, whereas for listeners |
| 66 |
#' this is where new connections will be accepted. |
| 67 |
#' |
| 68 |
#' @section Links: |
| 69 |
#' |
| 70 |
#' NNG: <https://nng.nanomsg.org/> \cr |
| 71 |
#' Mbed TLS: <https://www.trustedfirmware.org/projects/mbed-tls/> |
| 72 |
#' |
| 73 |
#' @useDynLib nanonext, .registration = TRUE |
| 74 |
#' |
| 75 |
"_PACKAGE" |