From 6d0027fae75e4810d66eb4c5817255ffa517e158 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 5 Jan 2019 16:30:02 -0800 Subject: fixes #839 TCP listener_start API should use constant sockaddr --- src/core/platform.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/core') 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 * -- cgit v1.2.3-70-g09d2