Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

NB .advance programming with unix environment using C runclient.c code from LMS is here #include #include #include #include #include #include #include #include void error(const char

NB .advance programming with unix environment using C

image text in transcribed

image text in transcribed

runclient.c code from LMS is here

#include #include #include #include #include #include #include #include

void error(const char *msg) { perror(msg); exit(0); }

int main(int argc, char *argv[]) { int sockfd, portno, n; struct sockaddr_in serv_addr; struct hostent *server;

char buffer[256]; if (argc h_addr, (char *)&serv_addr.sin_addr.s_addr, server->h_length); serv_addr.sin_port = htons(portno); if (connect(sockfd,(struct sockaddr *) &serv_addr,sizeof(serv_addr))

runserver.c code from LMS

/* A simple server in the internet domain using TCP The port number is passed as an argument This version runs forever, forking off a separate process for each connection */ #include #include #include #include #include #include #include

void dostuff(int); /* function prototype */ void error(const char *msg) { perror(msg); exit(1); }

int main(int argc, char *argv[]) { int sockfd, newsockfd, portno, pid; socklen_t clilen; struct sockaddr_in serv_addr, cli_addr;

if (argc

/******** DOSTUFF() ********************* There is a separate instance of this function for each connection. It handles all communication once a connnection has been established. *****************************************/ void dostuff (int sock) { int n; char buffer[256]; bzero(buffer,256); n = read(sock,buffer,255); if (n

RPC Using the code Client/Server uploaded to the LMS can you create survey server for your teacher, with respect to the following information you need to apply those functionality bye the server. After voting the server must print the current status with respect to every option. Example: A. Teacher name, course etc. 1. Strongly agree: 1 which means one time select 2. Agree: 2 which mean twice time selected and etc. Course Title and Number: Name of Instructor: Semester Faculty: Degree Evaluate the following aspects of the teaching performance in terms capacity to provide quality education by marking/" in the box of corresponding column according to the scale given: 5-Strongly agree; 4-Agree; 3-Neutral; 2-Disagree: 1-Strongly disagree; Aspects related to Teaching Performance Scale A: Subject Matter Knowledge Gives adequate information considering students level 2. Makes topics easily understandable Notes: true. 1. Every student can only take the survey for his teachers 2. Every student can take the survey only ONCE for his teacher, to make sure the results are 3. The vote is anonymous. Once a student finishes a survey his answers cannot be traced back to him. This is to take away the fear of consequences for unwelcome but true answers. 4. It is easy to set up

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions