Question: https://vcansimplify.wordpress.com/2013/03/14/c-socket-tutorial-echo-server/ The majority of my code comes from the above website for the server and client codes, however when I go to execute the client

https://vcansimplify.wordpress.com/2013/03/14/c-socket-tutorial-echo-server/

The majority of my code comes from the above website for the server and client codes, however when I go to execute the client code I get a broken pipe. My outcome is supposed to make the input be all capitalized, ie

input: "This is a Test"

Output: "THIS IS A TEST"

Is anyone able to find my error or do they have the correct code that I could compare to? Thank you for your help.

 https://vcansimplify.wordpress.com/2013/03/14/c-socket-tutorial-echo-server/ The majority of my code comes from the above website\for the server and client codes, however when I go to execute

#include #include # include int main () char str [100 int listen fd, comm fd; printf ( struct sockaddr in servaddr; listen fd -socket (AF INET, SOCK STREAM, 0) bzero( &servaddr, sizeof (servaddr)): printf ("Big Spaces servaddr. sin-family = AF_INET ; servaddr.sin addr.s addrhtons (INADDR ANY); servaddr.sin port -htons (34567) bind (1isten_fd, (struct sockaddr *) &servaddr, sizeof (servaddr)) listen (listen fd, 10); comm fd= accept (listenfd, (struct sockaddr*) NULL, NULL); - printf ("Hello") while (1) bzero (str, 100) read (comm fd, str, 100); for (inti:i

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!