Skip to content

Add nxlinkConnectToHost note about the socket driver #668

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alloncm
Copy link

@alloncm alloncm commented Apr 26, 2025

Add a comment that the socket driver must be initialized prior to calling this function, otherwise this function will fail.

Add a comment that the socket driver must be initialized prior to calling this function, otherwise this function will fail.
@masagrator
Copy link
Contributor

socket must be initialized for any kind of server-client interaction in network. That's not limited to this function, and that's not limited to this platform.

@alloncm
Copy link
Author

alloncm commented Apr 26, 2025

You are correct I just assumed that it will be mentioned in the docs / have an indicative error message / the function will initialize it itself (though this might be risky on second thought).

Perhaps setting errno to an indicative error number would be better?

Anyway this is my first time developing for the switch so feel free to close this if you think it is trivial.

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.

2 participants