Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Need a Program in C++ for this. Please help. Problem Statement You are required

ID: 3587992 • Letter: N

Question

Need a Program in C++ for this. Please help.

Problem Statement You are required to implement in C++ a stripped down and simplified E-mail client and E-mail server using UDP as the transport protocol. Purpose of this assignment is to become familiar with how SMTP (Simple Mail Transfer Protocol) works. The commands that you must support are HELO, MAIL, RCPT, DATA and QUIT. You do not need to support persistent SMTP connections; that is, you can assume that only one message will be sent at a time. Part I-The SMTP E-mail Client: Here are some specific requirements and other important notes about your E-mail client: · Your e-mail client will take three parameters on its command line: the address to which mail is to be sent, the subject of the message, and the name of a file containing the body of the e-mail message. The address will be in a special form user@host:port. This form allows you to explicitly identify where your SMTP E- mail server is. The subject can be any text; it is up to the user of the client to ensure that multi-word subjects are enclosed within quotation marks so the shell interprets the subject as a single parameter. The file name parameter simply contains the name of a text file that will be sent as the main content of the e-mail message

Explanation / Answer

#include #include #include class Cpu { public: virtual int dummy( int, int ) {} private: virtual int add_( int a, int b ) { return a + b; } /* A */ virtual int sub_( int a, int b ) { return a - b; } /* B */ virtual int mul_( int a, int b ) { return a * b; } /* C */ virtual int div_( int a, int b ) { return a / b; } /* D */ virtual int mod_( int a, int b ) { return a % b; } /* E */ virtual int and_( int a, int b ) { return a & b; } /* F */ virtual int or_( int a, int b ) { return a | b; } /* G */ virtual int xor_( int a, int b ) { return a ^ b; } /* H */ }; int main( int argc, char* argv[] ) { typedef int (Cpu::*Memfun)( int, int ); union { Memfun fn; unsigned char ptr[6]; } u; Cpu cpu; u.fn = &Cpu::dummy; assert( argc == 4 ); int p1 = atoi( argv[ 1 ] ); int p2 = atoi( argv[ 3 ] ); char op = argv[2][0]; assert( op >= 'A' && op
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote