Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IS-12 support #330

Merged
merged 117 commits into from
Mar 7, 2024
Merged

IS-12 support #330

merged 117 commits into from
Mar 7, 2024

Conversation

lo-simon
Copy link
Contributor

@lo-simon lo-simon commented May 9, 2023

Add the basic WebSocket server for IS-12

Copy link
Contributor

@garethsb garethsb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good

Development/nmos/node_server.cpp Show resolved Hide resolved
Development/nmos/control_protocol_ws_api.h Outdated Show resolved Hide resolved
Copy link
Contributor

@garethsb garethsb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good

@lo-simon lo-simon changed the title Create IS-12 websocket server IS-12 support Aug 4, 2023
@lo-simon lo-simon marked this pull request as ready for review March 1, 2024 10:59
@jonathan-r-thorpe jonathan-r-thorpe merged commit cb66439 into sony:master Mar 7, 2024
11 checks passed
@jonathan-r-thorpe jonathan-r-thorpe deleted the is-12 branch March 7, 2024 09:14
BST_REQUIRE_THROW(nmos::details::constraints_validation(value::string(U("1a2")), value::null(), value::null(), with_constraints_string_constraints_validation_params), nmos::control_protocol_exception);
BST_REQUIRE_THROW(nmos::details::constraints_validation(value::string(U("1*")), value::null(), value::null(), with_constraints_string_constraints_validation_params), nmos::control_protocol_exception);
const nmos::details::datatype_constraints_validation_parameters no_constraints_string_constraints_validation_params{ no_constraints_string_datatype, nmos::make_get_control_protocol_datatype_descriptor_handler(control_protocol_state) };
BST_REQUIRE_NO_THROW(nmos::details::constraints_validation(value::string(U("1234567890-abcde-!\"�$%^&*()_+=")), value::null(), value::null(), no_constraints_string_constraints_validation_params));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lo-simon, @jonathan-r-thorpe, strings with the '£' character in are causing warnings:

illegal character encoding in string literal [-Winvalid-source-encoding]

The £ character doesn't appear in 7-bit ASCII. It's U+00A3 in Unicode, so it's fine in a wchar_t string literal on Windows, and actually also in Windows-1252 codepage strings... but in UTF-8 it would be the two octets C2 A3.

Do you need to test this character specifically?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to specifically test this character. Let's just remove the '£/�' from the string.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the £ character can be removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants