summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-03-14 15:40:46 -0700
committerGarrett D'Amore <garrett@damore.org>2018-03-14 17:16:39 -0700
commit85ccb0066a86a3558ae81cd357463f8dc631f94b (patch)
tree15838902439f6ed188ffb70fe2170605f26894bc /docs
parentf4de6b5302df8befbd2b229b701d0bf9ca81a5fb (diff)
downloadnng-85ccb0066a86a3558ae81cd357463f8dc631f94b.tar.gz
nng-85ccb0066a86a3558ae81cd357463f8dc631f94b.tar.bz2
nng-85ccb0066a86a3558ae81cd357463f8dc631f94b.zip
fixes #289 nng_sockaddr could just be a union
fixes #290 sockaddr improvements
Diffstat (limited to 'docs')
-rw-r--r--docs/man/nng_inproc.adoc10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/man/nng_inproc.adoc b/docs/man/nng_inproc.adoc
index c0dc270d..5123c3a3 100644
--- a/docs/man/nng_inproc.adoc
+++ b/docs/man/nng_inproc.adoc
@@ -31,8 +31,7 @@ to slower transports when data must be moved within the same process.
This transport tries hard to avoid copying data, and thus is very
light-weight.
-Registration
-~~~~~~~~~~~~
+=== Registration
The _inproc_ transport is generally built-in to the _nng_ core, so
no extra steps to use it should be necessary.
@@ -52,7 +51,8 @@ that URI.
=== Socket Address
When using an `nng_sockaddr` structure, the actual structure is of type
-`struct nng_sockaddr_inproc`. This type has the following definition:
+`struct nng_sockaddr_inproc`.
+This type has the following definition:
[source,c]
--------
@@ -62,9 +62,9 @@ When using an `nng_sockaddr` structure, the actual structure is of type
typedef nng_sockaddr_inproc {
// <2>
uint16_t sa_family; // must be NNG_AF_INPROC
- char sa_path[NNG_MAXADDRLEN]; // arbitrary "path"
+ char sa_name[NNG_MAXADDRLEN]; // arbitrary "name"
//
-}
+} nng_sockaddr_inproc;
--------
<1> The values of these macros may change, so applications
should avoid depending upon their values and instead use them symbolically.