Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Commit

Permalink
Get sock from network client state.
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon MacMullen committed Aug 11, 2010
1 parent ce22b6e commit e19045c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/amqp_network_connection.erl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
phase = terminate_channels}).

-define(INFO_KEYS,
(amqp_connection:info_keys() ++ [max_channel, heartbeat])).
(amqp_connection:info_keys() ++ [max_channel, heartbeat, sock])).

%%---------------------------------------------------------------------------
%% gen_server callbacks
Expand Down Expand Up @@ -164,6 +164,7 @@ i(is_closing, State) -> State#nc_state.closing =/= false;
i(amqp_params, State) -> State#nc_state.params;
i(max_channel, State) -> State#nc_state.max_channel;
i(heartbeat, State) -> State#nc_state.heartbeat;
i(sock, State) -> State#nc_state.sock;
i(num_channels, State) -> amqp_channel_util:num_channels(
State#nc_state.channels);
i(Item, _State) -> throw({bad_argument, Item}).
Expand Down

0 comments on commit e19045c

Please sign in to comment.