Question: Programming Language C++ Assignment please include comments Client Program (Visual Studios) Server (Visual Studios) . Verizon @ 4 77% 10:00 AM ActivationTestPlan.docx #include #include #include

Programming Language C++

Assignment

please include comments

Programming Language C++ Assignment please include comments Client Program (Visual Studios) Server

(Visual Studios) . Verizon @ 4 77% 10:00 AM ActivationTestPlan.docx #include #include

#include #include using namespace std; // Make sure build environment links to

Client Program (Visual Studios)

Winsock library file #pragma comment(lib, "Ws2_32.lib"), // Define default global constants #defineBUFFERSIZE 256 #define ACTIVATIONFILENAME "actFile.txt" #define IPADDRESS "127.0.0.1" #define GOODMSG "good" #define

Server (Visual Studios)

BADMSG "invalid" #define DEFAULTPORT 6000 // Function to close the specified socketand perform DLL cleanup (WSACleanup) void cleanup (SOCKET socket); Gint main(int argc,

. Verizon @ 4 77% 10:00 AM ActivationTestPlan.docx #include #include #include #include using namespace std; // Make sure build environment links to Winsock library file #pragma comment(lib, "Ws2_32.lib"), // Define default global constants #define BUFFERSIZE 256 #define ACTIVATIONFILENAME "actFile.txt" #define IPADDRESS "127.0.0.1" #define GOODMSG "good" #define BADMSG "invalid" #define DEFAULTPORT 6000 // Function to close the specified socket and perform DLL cleanup (WSACleanup) void cleanup (SOCKET socket); Gint main(int argc, char* argv[]), int port; // If user types in a port number on the command line use it, // otherwise, use the default port number if (argc > 1) port = atoi(argv[1]); else port = DEFAULTPORT; (Global Scope) Client.cpp + x Class View Property Manager Miscellaneous Files - No Configurations 14 #define ACTIVATIONFILENAME "actFile.txt", #define IPADDRESS "127.0.0.1" #define GOODMSG "good" #define BADMSG "invalid" #define DEFAULTPORT 6000 // Function to close the specified socket and perform DLL cleanup (WSACleanup) void cleanup (SOCKET socket); Qint main(int argc, char* argv[]), int port; // If user types in a port number on the command line use it, // otherwise, use the default port number if (argc > 1) port = atoi (argv[1]); else port = DEFAULTPORT; return 0; Ovoid cleanup (SOCKET socket) if (socket != INVALID SOCKET) closesocket (socket); WSACleanup(); (Global Scope) Server.cpp + x Class View Miscellaneous Files - No Configurations 1 include #include #include #include #include using namespace std; // Make sure build environment links to Winsock library file #pragma comment (lib, "Ws2_32.lib"), // Define default global constants #define BUFFERSIZE 256 #define DATAFILENAME "datafile.txt" #define IPADDRESS "127.0.0.1" #define GOODMSG "good" #define BADMSG "invalid" #define DEFAULTPORT 6000 // Function to close the specified socket and perform DLL cleanup (WSACleanup) void cleanup (SOCKET socket); Gint main(int argc, char* argv[]), { int port; // If user types in a port number on the command line use it, // otherwise, use the default port number if (argc > 1) port = atoi (argv[1]); else port = DEFAULTPORT; 100 % No issues found Ln: 1 Ch: 1 TABS CRLF (Global Scope) Server.cpp + x Class View Property Manager Miscellaneous Files - No Configurations 15 #define IPADDRESS "127.0.0.1" #define GOODMSG "good" #define BADMSG "invalid" #define DEFAULTPORT 6000 // Function to close the specified socket and perform DLL cleanup (WSACleanup) void cleanup (SOCKET socket); Qint main(int args, char* argv[]), int port; // If user types in a port number on the command line use it, // otherwise, use the default port number if (argc > 1) port = atoi (argv[1]); else port = DEFAULTPORT; return 0; Ovoid cleanup (SOCKET socket) if (socket != INVALID_SOCKET) closesocket (socket); WSACleanup(); 100% . No issues found Ln: 1 Ch: 1 TABS CRLF . Verizon @ 4 77% 10:00 AM ActivationTestPlan.docx #include #include #include #include using namespace std; // Make sure build environment links to Winsock library file #pragma comment(lib, "Ws2_32.lib"), // Define default global constants #define BUFFERSIZE 256 #define ACTIVATIONFILENAME "actFile.txt" #define IPADDRESS "127.0.0.1" #define GOODMSG "good" #define BADMSG "invalid" #define DEFAULTPORT 6000 // Function to close the specified socket and perform DLL cleanup (WSACleanup) void cleanup (SOCKET socket); Gint main(int argc, char* argv[]), int port; // If user types in a port number on the command line use it, // otherwise, use the default port number if (argc > 1) port = atoi(argv[1]); else port = DEFAULTPORT; (Global Scope) Client.cpp + x Class View Property Manager Miscellaneous Files - No Configurations 14 #define ACTIVATIONFILENAME "actFile.txt", #define IPADDRESS "127.0.0.1" #define GOODMSG "good" #define BADMSG "invalid" #define DEFAULTPORT 6000 // Function to close the specified socket and perform DLL cleanup (WSACleanup) void cleanup (SOCKET socket); Qint main(int argc, char* argv[]), int port; // If user types in a port number on the command line use it, // otherwise, use the default port number if (argc > 1) port = atoi (argv[1]); else port = DEFAULTPORT; return 0; Ovoid cleanup (SOCKET socket) if (socket != INVALID SOCKET) closesocket (socket); WSACleanup(); (Global Scope) Server.cpp + x Class View Miscellaneous Files - No Configurations 1 include #include #include #include #include using namespace std; // Make sure build environment links to Winsock library file #pragma comment (lib, "Ws2_32.lib"), // Define default global constants #define BUFFERSIZE 256 #define DATAFILENAME "datafile.txt" #define IPADDRESS "127.0.0.1" #define GOODMSG "good" #define BADMSG "invalid" #define DEFAULTPORT 6000 // Function to close the specified socket and perform DLL cleanup (WSACleanup) void cleanup (SOCKET socket); Gint main(int argc, char* argv[]), { int port; // If user types in a port number on the command line use it, // otherwise, use the default port number if (argc > 1) port = atoi (argv[1]); else port = DEFAULTPORT; 100 % No issues found Ln: 1 Ch: 1 TABS CRLF (Global Scope) Server.cpp + x Class View Property Manager Miscellaneous Files - No Configurations 15 #define IPADDRESS "127.0.0.1" #define GOODMSG "good" #define BADMSG "invalid" #define DEFAULTPORT 6000 // Function to close the specified socket and perform DLL cleanup (WSACleanup) void cleanup (SOCKET socket); Qint main(int args, char* argv[]), int port; // If user types in a port number on the command line use it, // otherwise, use the default port number if (argc > 1) port = atoi (argv[1]); else port = DEFAULTPORT; return 0; Ovoid cleanup (SOCKET socket) if (socket != INVALID_SOCKET) closesocket (socket); WSACleanup(); 100% . No issues found Ln: 1 Ch: 1 TABS CRLF

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!