-
Notifications
You must be signed in to change notification settings - Fork 216
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
Conversation
src/server.cpp
Outdated
|
||
#ifdef _WIN32 | ||
WSADATA wsaData; | ||
if (WSAStartup(MAKEWORD(2, 2), &wsaData) != 0) { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed.
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this comment // TODO:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some ocmments.
reference commit modify the code and CI test is pass |
src/server.cpp
Outdated
} | ||
|
||
// OVMS Start | ||
int Server::start(int argc, char** argv) { | ||
#ifdef __linux__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove ifdef linux here.
There was a problem hiding this comment.
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
🛠 Summary
Jira ticket : 1 Write windows specific status codes.
Implement windows/linux specific status codes alignment.
Using Winsocket to clean destructor in windows.
🧪 Checklist
``