diff options
| author | Garrett D'Amore <garrett@damore.org> | 2019-01-05 16:30:02 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2019-01-06 12:12:27 -0800 |
| commit | 6d0027fae75e4810d66eb4c5817255ffa517e158 (patch) | |
| tree | 9bd36c16cf293e4335ab0650e226a335029012ad /src/core | |
| parent | 68c6310ee83078d6ad6af0c9ccddef11b8f8b7c2 (diff) | |
| download | nng-6d0027fae75e4810d66eb4c5817255ffa517e158.tar.gz nng-6d0027fae75e4810d66eb4c5817255ffa517e158.tar.bz2 nng-6d0027fae75e4810d66eb4c5817255ffa517e158.zip | |
fixes #839 TCP listener_start API should use constant sockaddr
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/platform.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/platform.h b/src/core/platform.h index 18107120..69fa5db6 100644 --- a/src/core/platform.h +++ b/src/core/platform.h @@ -317,11 +317,8 @@ extern void nni_tcp_listener_fini(nni_tcp_listener *); extern void nni_tcp_listener_close(nni_tcp_listener *); // nni_tcp_listener_listen creates the socket in listening mode, bound -// to the specified address. The address will be updated to reflect -// the actual address bound (making it possible to bind to port 0 to -// specify an ephemeral address, and then the actual address can be -// examined afterwards.) -extern int nni_tcp_listener_listen(nni_tcp_listener *, nni_sockaddr *); +// to the specified address. +extern int nni_tcp_listener_listen(nni_tcp_listener *, const nni_sockaddr *); // nni_tcp_listener_accept accepts in incoming connect, asynchronously. // On success, the first (and only) output will be an nni_tcp_conn * |
