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

Fix UDP read function #33

Merged
merged 1 commit into from
Mar 26, 2021
Merged

Fix UDP read function #33

merged 1 commit into from
Mar 26, 2021

Conversation

icolwell-as
Copy link
Member

Resolves #32, see issue for more details.

@icolwell-as icolwell-as merged commit 1891c0f into master Mar 26, 2021
@icolwell-as icolwell-as deleted the 32_fix_udp_read branch March 26, 2021 17:45
@@ -50,6 +51,7 @@ class UDPInterface
ReturnStatuses write(const std::vector<uint8_t>& msg);

private:
uint receive_buffer_size_ = 1024;

Choose a reason for hiding this comment

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

uint32_t

@@ -19,6 +19,12 @@ UDPInterface::UDPInterface() :
{
}

ReturnStatuses UDPInterface::open(std::string ip_address, const int &port, uint receive_buffer_size)

Choose a reason for hiding this comment

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

uint32_t

receive_buffer_size_ = receive_buffer_size;
return UDPInterface::open(ip_address, port);
}

ReturnStatuses UDPInterface::open(std::string ip_address, const int &port)
Copy link

@jilinzhou jilinzhou Mar 29, 2021

Choose a reason for hiding this comment

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

should be (const std::string& ip_address, int port)

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.

UDPInterface::read doesn't work
4 participants