Skip to content

Commit

Permalink
missed a few
Browse files Browse the repository at this point in the history
  • Loading branch information
graebm committed Dec 12, 2023
1 parent 04b7f95 commit 8cde796
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion include/aws/crt/mqtt/Mqtt5Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ namespace Aws
/**
* Network port of the MQTT server to connect to.
*/
uint16_t m_port;
uint32_t m_port;

/**
* Client bootstrap to use. In almost all cases, this can be left undefined.
Expand Down
2 changes: 1 addition & 1 deletion include/aws/crt/mqtt/private/MqttConnectionCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ namespace Aws

aws_mqtt_client_connection *m_underlyingConnection;
String m_hostName;
uint16_t m_port;
uint32_t m_port;
Crt::Io::TlsContext m_tlsContext;
Io::TlsConnectionOptions m_tlsOptions;
Io::SocketOptions m_socketOptions;
Expand Down
2 changes: 1 addition & 1 deletion include/aws/iot/Mqtt5Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ namespace Aws
/**
* Network port of the MQTT server to connect to.
*/
uint16_t m_port;
uint32_t m_port;

/**
* TLS context for secure socket connections.
Expand Down
2 changes: 1 addition & 1 deletion include/aws/iot/MqttClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ namespace Aws

Crt::Allocator *m_allocator;
Crt::String m_endpoint;
uint16_t m_portOverride;
uint32_t m_portOverride;
Crt::Io::SocketOptions m_socketOptions;
Crt::Io::TlsContextOptions m_contextOptions;
Crt::Optional<WebsocketConfig> m_websocketConfig;
Expand Down
18 changes: 9 additions & 9 deletions tests/Mqtt5ClientTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ struct Mqtt5TestEnvVars
return;
}
m_hostname_string = aws_string_c_str(m_hostname);
m_port_value = static_cast<uint16_t>(atoi(aws_string_c_str(m_port)));
m_port_value = static_cast<uint32_t>(atoi(aws_string_c_str(m_port)));
break;
}
case MQTT5CONNECT_DIRECT_BASIC_AUTH:
Expand All @@ -225,7 +225,7 @@ struct Mqtt5TestEnvVars
return;
}
m_hostname_string = aws_string_c_str(m_hostname);
m_port_value = static_cast<uint16_t>(atoi(aws_string_c_str(m_port)));
m_port_value = static_cast<uint32_t>(atoi(aws_string_c_str(m_port)));
m_username_string = aws_string_c_str(m_username);
m_password_cursor = ByteCursorFromArray(m_password->bytes, m_password->len);
break;
Expand All @@ -247,7 +247,7 @@ struct Mqtt5TestEnvVars
return;
}
m_hostname_string = aws_string_c_str(m_hostname);
m_port_value = static_cast<uint16_t>(atoi(aws_string_c_str(m_port)));
m_port_value = static_cast<uint32_t>(atoi(aws_string_c_str(m_port)));
m_certificate_path_string = aws_string_c_str(m_certificate_path);
m_private_key_path_string = aws_string_c_str(m_private_key_path);
break;
Expand All @@ -268,7 +268,7 @@ struct Mqtt5TestEnvVars
}
{
m_hostname_string = aws_string_c_str(m_hostname);
m_port_value = static_cast<uint16_t>(atoi(aws_string_c_str(m_port)));
m_port_value = static_cast<uint32_t>(atoi(aws_string_c_str(m_port)));
}
break;
}
Expand All @@ -292,7 +292,7 @@ struct Mqtt5TestEnvVars
}
{
m_hostname_string = aws_string_c_str(m_hostname);
m_port_value = static_cast<uint16_t>(atoi(aws_string_c_str(m_port)));
m_port_value = static_cast<uint32_t>(atoi(aws_string_c_str(m_port)));
m_username_string = aws_string_c_str(m_username);
m_password_cursor = ByteCursorFromArray(m_password->bytes, m_password->len);
}
Expand All @@ -317,7 +317,7 @@ struct Mqtt5TestEnvVars
}
{
m_hostname_string = aws_string_c_str(m_hostname);
m_port_value = static_cast<uint16_t>(atoi(aws_string_c_str(m_port)));
m_port_value = static_cast<uint32_t>(atoi(aws_string_c_str(m_port)));
m_certificate_path_string = aws_string_c_str(m_certificate_path);
m_private_key_path_string = aws_string_c_str(m_private_key_path);
}
Expand Down Expand Up @@ -359,7 +359,7 @@ struct Mqtt5TestEnvVars
if (m_error == AWS_OP_SUCCESS && m_httpproxy_hostname != NULL && m_httpproxy_port != NULL)
{
m_httpproxy_hostname_string = aws_string_c_str(m_httpproxy_hostname);
m_httpproxy_port_value = static_cast<uint16_t>(atoi(aws_string_c_str(m_httpproxy_port)));
m_httpproxy_port_value = static_cast<uint32_t>(atoi(aws_string_c_str(m_httpproxy_port)));
}
}

Expand Down Expand Up @@ -429,13 +429,13 @@ struct Mqtt5TestEnvVars
struct aws_string *m_httpproxy_port = NULL;

Aws::Crt::String m_hostname_string;
uint16_t m_port_value;
uint32_t m_port_value;
Aws::Crt::String m_username_string;
Aws::Crt::ByteCursor m_password_cursor;
Aws::Crt::String m_certificate_path_string;
Aws::Crt::String m_private_key_path_string;
Aws::Crt::String m_httpproxy_hostname_string;
uint16_t m_httpproxy_port_value;
uint32_t m_httpproxy_port_value;
};

//////////////////////////////////////////////////////////
Expand Down

0 comments on commit 8cde796

Please sign in to comment.