forked from nanomsg/nng
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes nanomsg#381 Want comparators for various types
- Loading branch information
Showing
28 changed files
with
494 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
= nng_ctx_id(3) | ||
// | ||
// Copyright 2018 Staysail Systems, Inc. <[email protected]> | ||
// Copyright 2018 Capitar IT Group BV <[email protected]> | ||
// | ||
// This document is supplied under the terms of the MIT License, a | ||
// copy of which should be located in the distribution where this | ||
// file was obtained (LICENSE.txt). A copy of the license may also be | ||
// found online at https://opensource.org/licenses/MIT. | ||
// | ||
|
||
== NAME | ||
|
||
nng_ctx_id - return numeric context identifier | ||
|
||
== SYNOPSIS | ||
|
||
[source, c] | ||
---- | ||
#include <nng/nng.h> | ||
int nng_ctx_id(nng_ctx c); | ||
---- | ||
|
||
== DESCRIPTION | ||
|
||
The `nng_ctx_id()` function returns a positive identifier for the context _c_, | ||
if it is valid. | ||
Otherwise it returns `-1`. | ||
|
||
NOTE: A context is considered valid if it was ever opened with | ||
<<nng_ctx_open.3#,`nng_ctx_open`>> function. | ||
Contexts that are allocated on the stack or statically should be | ||
initialized with the macro | ||
<<nng_ctx.5#NNG_CTX_INITIALIZER,`NNG_CTX_INITIALIZER`>> to ensure that | ||
they cannot be confused with a valid context before they are opened. | ||
|
||
== RETURN VALUES | ||
|
||
This function returns the positive value for the context identifier, or | ||
`-1` if the context is invalid. | ||
|
||
== ERRORS | ||
|
||
None. | ||
|
||
== SEE ALSO | ||
|
||
<<nng_ctx.5#,nng_ctx(5)>>, | ||
<<nng.7#,nng(7)>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
= nng_dialer_id(3) | ||
// | ||
// Copyright 2018 Staysail Systems, Inc. <[email protected]> | ||
// Copyright 2018 Capitar IT Group BV <[email protected]> | ||
// | ||
// This document is supplied under the terms of the MIT License, a | ||
// copy of which should be located in the distribution where this | ||
// file was obtained (LICENSE.txt). A copy of the license may also be | ||
// found online at https://opensource.org/licenses/MIT. | ||
// | ||
|
||
== NAME | ||
|
||
nng_dialer_id - return numeric dialer identifier | ||
|
||
== SYNOPSIS | ||
|
||
[source, c] | ||
---- | ||
#include <nng/nng.h> | ||
int nng_dialer_id(nng_dialer d); | ||
---- | ||
|
||
== DESCRIPTION | ||
|
||
The `nng_dialer_id()` function returns a positive identifier for the dialer _d_, | ||
if it is valid. | ||
Otherwise it returns `-1`. | ||
|
||
NOTE: A dialer is considered valid if it was ever created with the | ||
<<nng_dialer_create.3#,`nng_dialer_create`>> or | ||
<<nng_dial.3#,`nng_dial`>> functions. | ||
Dialers that are allocated on the stack or statically should be | ||
initialized with the macro | ||
<<nng_ctx.5#NNG_DIALER_INITIALIZER,`NNG_DIALER_INITIALIZER`>> to ensure that | ||
they cannot be confused with a valid dialer before they are created properly. | ||
|
||
== RETURN VALUES | ||
|
||
This function returns the positive value for the dialer identifier, or | ||
`-1` if the dialer is invalid. | ||
|
||
== ERRORS | ||
|
||
None. | ||
|
||
== SEE ALSO | ||
|
||
<<nng_dialer.5#,nng_dialer(5)>>, | ||
<<nng.7#,nng(7)>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
= nng_listener_id(3) | ||
// | ||
// Copyright 2018 Staysail Systems, Inc. <[email protected]> | ||
// Copyright 2018 Capitar IT Group BV <[email protected]> | ||
// | ||
// This document is supplied under the terms of the MIT License, a | ||
// copy of which should be located in the distribution where this | ||
// file was obtained (LICENSE.txt). A copy of the license may also be | ||
// found online at https://opensource.org/licenses/MIT. | ||
// | ||
|
||
== NAME | ||
|
||
nng_listener_id - return numeric listener identifier | ||
|
||
== SYNOPSIS | ||
|
||
[source, c] | ||
---- | ||
#include <nng/nng.h> | ||
int nng_listener_id(nng_listener l); | ||
---- | ||
|
||
== DESCRIPTION | ||
|
||
The `nng_listener_id()` function returns a positive identifier for the | ||
listener _l_, if it is valid. | ||
Otherwise it returns `-1`. | ||
|
||
NOTE: A listener is considered valid if it was ever created with the | ||
<<nng_listener_create.3#,`nng_listener_create`>> or | ||
<<nng_listen.3#,`nng_listen`>> functions. | ||
listeners that are allocated on the stack or statically should be | ||
initialized with the macro | ||
<<nng_ctx.5#NNG_LISTENER_INITIALIZER,`NNG_LISTENER_INITIALIZER`>> to ensure that | ||
they cannot be confused with a valid listener before they are created properly. | ||
|
||
== RETURN VALUES | ||
|
||
This function returns the positive value for the listener identifier, or | ||
`-1` if the listener is invalid. | ||
|
||
== ERRORS | ||
|
||
None. | ||
|
||
== SEE ALSO | ||
|
||
<<nng_listener.5#,nng_listener(5)>>, | ||
<<nng.7#,nng(7)>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
= nng_pipe_id(3) | ||
// | ||
// Copyright 2018 Staysail Systems, Inc. <[email protected]> | ||
// Copyright 2018 Capitar IT Group BV <[email protected]> | ||
// | ||
// This document is supplied under the terms of the MIT License, a | ||
// copy of which should be located in the distribution where this | ||
// file was obtained (LICENSE.txt). A copy of the license may also be | ||
// found online at https://opensource.org/licenses/MIT. | ||
// | ||
|
||
== NAME | ||
|
||
nng_pipe_id - return numeric pipe identifier | ||
|
||
== SYNOPSIS | ||
|
||
[source, c] | ||
---- | ||
#include <nng/nng.h> | ||
int nng_pipe_id(nng_pipe p); | ||
---- | ||
|
||
== DESCRIPTION | ||
|
||
The `nng_pipe_id()` function returns a positive identifier for the pipe _p_, | ||
if it is valid. | ||
Otherwise it returns `-1`. | ||
|
||
NOTE: A pipe is considered valid if it was ever opened with | ||
<<nng_pipe_open.3#,`nng_pipe_open`>> function. | ||
Pipes that are allocated on the stack or statically should be | ||
initialized with the macro | ||
<<nng_pipe.5#NNG_PIPE_INITIALIZER,`NNG_PIPE_INITIALIZER`>> to ensure that | ||
they cannot be confused with a valid pipe before they are opened. | ||
|
||
== RETURN VALUES | ||
|
||
This function returns the positive value for the pipe identifier, or | ||
`-1` if the pipe is invalid. | ||
|
||
== ERRORS | ||
|
||
None. | ||
|
||
== SEE ALSO | ||
|
||
<<nng_pipe.5#,nng_pipe(5)>>, | ||
<<nng.7#,nng(7)>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.