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

NetworkWidget: Add Blocking column #8808

Merged
merged 1 commit into from Jun 26, 2020

Conversation

sepalani
Copy link
Contributor

This PR adds a "Blocking" column to the Network widget telling if the socket is blocking.

Ready to be reviewed & merged.

@sepalani
Copy link
Contributor Author

@iwubcode
You're right. I fixed it.

{
const auto& socket_manager = IOS::HLE::WiiSockMan::GetInstance();
if (socket_manager.GetHostSocket(wii_fd) < 0)
return new QTableWidgetItem();
Copy link
Member

Choose a reason for hiding this comment

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

Not saying it should be removed, but why are you checking for a host socket?

Copy link
Contributor Author

@sepalani sepalani Jun 15, 2020

Choose a reason for hiding this comment

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

The function is called for each possible socket fd. Some are used by the Wii and some aren't. The ones which aren't will return -EBADF, that's why I'm checking the GetHostSocket return value. The same check is done in many get functions above: if (host_fd < 0).

@JMC47 JMC47 merged commit 1ab3799 into dolphin-emu:master Jun 26, 2020
@sepalani sepalani deleted the net-widgets-block branch June 26, 2020 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants