qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gmur...@apache.org
Subject qpid-dispatch git commit: Replaced Proton API functions pn_netaddr_remote with pn_transport_remote_addr and pn_netaddr_listening with pn_listener_addr
Date Mon, 06 Aug 2018 18:28:22 GMT
Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 22ef3d167 -> b1013fd48


Replaced Proton API functions  pn_netaddr_remote with pn_transport_remote_addr and pn_netaddr_listening
with pn_listener_addr


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/b1013fd4
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/b1013fd4
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/b1013fd4

Branch: refs/heads/master
Commit: b1013fd48f4d21fe0c6eed78928a30b20a2aaf4b
Parents: 22ef3d1
Author: Ganesh Murthy <gmurthy@redhat.com>
Authored: Mon Aug 6 14:27:56 2018 -0400
Committer: Ganesh Murthy <gmurthy@redhat.com>
Committed: Mon Aug 6 14:27:56 2018 -0400

----------------------------------------------------------------------
 src/server.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/b1013fd4/src/server.c
----------------------------------------------------------------------
diff --git a/src/server.c b/src/server.c
index 0f0fdc4..827a3f6 100644
--- a/src/server.c
+++ b/src/server.c
@@ -580,8 +580,8 @@ void connect_fail(qd_connection_t *ctx, const char *name, const char *descriptio
 /* Get the host IP address for the remote end */
 static void set_rhost_port(qd_connection_t *ctx) {
     pn_transport_t *tport  = pn_connection_transport(ctx->pn_conn);
-    const struct sockaddr* sa = pn_netaddr_sockaddr(pn_netaddr_remote(tport));
-    size_t salen = pn_netaddr_socklen(pn_netaddr_remote(tport));
+    const struct sockaddr* sa = pn_netaddr_sockaddr(pn_transport_remote_addr(tport));
+    size_t salen = pn_netaddr_socklen(pn_transport_remote_addr(tport));
     if (sa && salen) {
         char rport[NI_MAXSERV] = "";
         int err = getnameinfo(sa, salen,
@@ -710,7 +710,7 @@ static void handle_listener(pn_event_t *e, qd_server_t *qd_server) {
         if (strcmp(port, "0") == 0) {
             // If a 0 (zero) is specified for a port, get the actual listening port from
the listener.
             pn_listener_t *l = pn_event_listener(e);
-            const pn_netaddr_t *na = pn_netaddr_listening(l);
+            const pn_netaddr_t *na = pn_listener_addr(l);
             char str[PN_MAX_ADDR] = "";
             pn_netaddr_str(na, str, sizeof(str));
             // "str" contains the host and port on which this listener is listening.


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message