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

CVS-154698, Implement windows specific status codes #2873

Merged
merged 14 commits into from
Jan 10, 2025

Conversation

18582088138
Copy link
Collaborator

🛠 Summary

Jira ticket : 1 Write windows specific status codes.

Implement windows/linux specific status codes alignment.
Using Winsocket to clean destructor in windows.

🧪 Checklist

  • Unit tests added.
  • The documentation updated.
  • Change follows security best practices.
    ``

src/server.cpp Outdated

#ifdef _WIN32
WSADATA wsaData;
if (WSAStartup(MAKEWORD(2, 2), &wsaData) != 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think its not neded here. GRPCServerModule::isPortAvailable.

src/server.cpp Outdated
}
SPDLOG_INFO("Shutting down");

#ifdef _WIN32
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not needed.

Copy link
Collaborator

Choose a reason for hiding this comment

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

WSACleanup(); to remove ?

src/server.cpp Outdated
@@ -32,6 +32,7 @@
#include <stdlib.h>

// TODO: Write windows/linux specific status codes.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove this comment // TODO:

Copy link
Collaborator

@rasapala rasapala left a comment

Choose a reason for hiding this comment

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

Some ocmments.

@18582088138
Copy link
Collaborator Author

reference commit modify the code and CI test is pass
pls review the PR
thx

src/server.cpp Outdated
}

// OVMS Start
int Server::start(int argc, char** argv) {
#ifdef __linux__
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove ifdef linux here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

following comment the reduce code has already remove

@18582088138 18582088138 requested a review from rasapala January 8, 2025 08:22
@18582088138 18582088138 merged commit 1fa4060 into main Jan 10, 2025
12 checks passed
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.

3 participants