2020-07-15 02:55:55 +08:00
|
|
|
%% This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
%% License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
%% file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
2011-06-06 19:45:22 +08:00
|
|
|
%%
|
2024-01-23 12:44:47 +08:00
|
|
|
%% Copyright (c) 2007-2025 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. All rights reserved.
|
2011-06-06 19:45:22 +08:00
|
|
|
%%
|
2012-02-03 01:52:58 +08:00
|
|
|
|
2011-06-06 19:45:22 +08:00
|
|
|
-record(stomp_configuration, {default_login,
|
|
|
|
|
default_passcode,
|
2016-03-09 23:33:52 +08:00
|
|
|
force_default_creds = false,
|
2012-02-21 00:07:18 +08:00
|
|
|
implicit_connect,
|
|
|
|
|
ssl_cert_login}).
|
2012-11-07 23:33:05 +08:00
|
|
|
|
|
|
|
|
-define(SUPPORTED_VERSIONS, ["1.0", "1.1", "1.2"]).
|
2016-12-08 18:15:34 +08:00
|
|
|
|
|
|
|
|
-define(INFO_ITEMS,
|
|
|
|
|
[conn_name,
|
|
|
|
|
connection,
|
|
|
|
|
connection_state,
|
|
|
|
|
session_id,
|
|
|
|
|
channel,
|
|
|
|
|
version,
|
|
|
|
|
implicit_connect,
|
2016-12-08 21:08:54 +08:00
|
|
|
auth_login,
|
|
|
|
|
auth_mechanism,
|
2016-12-08 18:15:34 +08:00
|
|
|
peer_addr,
|
|
|
|
|
host,
|
|
|
|
|
port,
|
|
|
|
|
peer_host,
|
|
|
|
|
peer_port,
|
|
|
|
|
protocol,
|
|
|
|
|
channels,
|
|
|
|
|
channel_max,
|
|
|
|
|
frame_max,
|
2016-12-08 21:08:54 +08:00
|
|
|
client_properties,
|
|
|
|
|
ssl,
|
|
|
|
|
ssl_protocol,
|
|
|
|
|
ssl_key_exchange,
|
|
|
|
|
ssl_cipher,
|
|
|
|
|
ssl_hash]).
|
2019-03-27 01:37:09 +08:00
|
|
|
|
2024-03-08 04:53:14 +08:00
|
|
|
-define(STOMP_GUIDE_URL, <<"https://rabbitmq.com/docs/stomp">>).
|
2023-07-09 03:36:56 +08:00
|
|
|
|
|
|
|
|
-define(DEFAULT_MAX_FRAME_SIZE, 4 * 1024 * 1024).
|