We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When launching an application linked with the SHIM, and if openperf server is not ready, the application will crash with:
terminate called after throwing an instance of 'std::runtime_error' what(): Could not connect to socket server: No such file or directory
It does not seem to be possible to catch this error. I tried this, but it did not work:
int main(int argc, char const* argv[]) { sleep(1); bool connected = false; while (!connected) { try { int sd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); if (sd < 0) { perror("socket(AF_PACKET, SOCK_RAW)"); sleep(1); } else { connected = true; close(sd); } } catch (std::runtime_error& e) { std::cout << "Failed to open the socket: " << e.what(); sleep(1); } } printf("Starting the server...\n");
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When launching an application linked with the SHIM, and if openperf server is not ready, the application will crash with:
It does not seem to be possible to catch this error. I tried this, but it did not work:
The text was updated successfully, but these errors were encountered: