From 3097b9a9cac67fb42c9a5a471abbf9c0a2a80b4e Mon Sep 17 00:00:00 2001 From: Simon MacMullen Date: Mon, 19 Nov 2012 16:34:02 +0000 Subject: [PATCH] address -> host. --- include/amqp_client.hrl | 4 ++-- src/amqp_direct_connection.erl | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/amqp_client.hrl b/include/amqp_client.hrl index 292d881c..5fd37e95 100644 --- a/include/amqp_client.hrl +++ b/include/amqp_client.hrl @@ -45,9 +45,9 @@ adapter_info = none, client_properties = []}). --record(amqp_adapter_info, {address = unknown, +-record(amqp_adapter_info, {host = unknown, port = unknown, - peer_address = unknown, + peer_host = unknown, peer_port = unknown, name = unknown, protocol = unknown, diff --git a/src/amqp_direct_connection.erl b/src/amqp_direct_connection.erl index 35368cb6..d05972dd 100644 --- a/src/amqp_direct_connection.erl +++ b/src/amqp_direct_connection.erl @@ -37,8 +37,8 @@ -define(INFO_KEYS, [type]). --define(CREATION_EVENT_KEYS, [pid, protocol, address, port, name, - peer_address, peer_port, +-define(CREATION_EVENT_KEYS, [pid, protocol, host, port, name, + peer_host, peer_port, user, vhost, client_properties, type]). %%--------------------------------------------------------------------------- @@ -96,9 +96,9 @@ i(client_properties, #state{params = P}) -> P#amqp_params_direct.client_properties; %% Optional adapter info i(protocol, #state{adapter_info = I}) -> I#amqp_adapter_info.protocol; -i(address, #state{adapter_info = I}) -> I#amqp_adapter_info.address; +i(host, #state{adapter_info = I}) -> I#amqp_adapter_info.host; i(port, #state{adapter_info = I}) -> I#amqp_adapter_info.port; -i(peer_address, #state{adapter_info = I}) -> I#amqp_adapter_info.peer_address; +i(peer_host, #state{adapter_info = I}) -> I#amqp_adapter_info.peer_host; i(peer_port, #state{adapter_info = I}) -> I#amqp_adapter_info.peer_port; i(name, #state{adapter_info = I}) -> I#amqp_adapter_info.name;