Question: This program uses the following files from the donahoo TCPEchoServer/Client program here: What I am trying to do if send in a .txt file through

This program uses the following files from the donahoo TCPEchoServer/Client program here: This program uses the following files from the donahoo TCPEchoServer/Client program here: What I am trying to do if send in a .txt file What I am trying to do if send in a .txt file through the command line to the TCPEchoClient and have it print it back out to the terminal. You can see the implementation here as well that it works as expected: Text File: through the command line to the TCPEchoClient and have it print it TCPEchoClient.c: back out to the terminal. You can see the implementation here as well that it works as expected: Text File: TCPEchoClient.c: Here is proof Here is proof that this portion works as expected: that this portion works as expected: Now the problem is I cannot Now the problem is I cannot get the output for the server side to work properly. The goal is the get the file that is sent line by line through the buffer to the server side to be printed out both backwards and in reverse. Here is the HandleTCPClient method from the TCPEchoServer.c file: get the output for the server side to work properly. The goal is the get the file that is sent line by line through And here is the output I am getting: the buffer to the server side to be printed out both backwards As you can see I got the reversing and backwards parts working properly but the server is having an issue with the line that are empty in the original text file and are not being printed properly. Also on the last line you can see that some wierd characters are being printed. How can this implementation be changed to get the fully desired result?

http://cs.ecs.baylor.edu/ donahoo/practical/CSockets 2/ textcode.html C Addressutility.c C DiewithMessage.c C Practical.h song.txt C TCPClientUtility.c C TCPEchoclient.c C TCPEchoserver.c C TCPServerUtility.c Hotel California On a dark desert highway, cool wind in my hair Warm smell of colitas, rising up through the air Up ahead in the distance, I saw a shimmering light My head grew heavy and my sight grew dim I had to stop for the night There she stood in the doorway I heard the mission bell And I was thinking to myself "This could be Heaven or this could be Hell" Then she lit up a candle and she showed me the way There were voices down the corridor I thought I heard them say Welcome to the Hotel California Such a lovely place (Such a lovely place) Such a lovely face Plenty of room at the Hotel California Any time of year (Any time of year) You can find it here Her mind is Tiffany-twisted, she got the Mercedes bends She got a lot of pretty, pretty boys she calls friends How they dance in the courtyard, sweet summer sweat Some dance to remember, some dance to forget. 1. Hotel California 2. 3. On a dark desert highway, cool wind in my hair 4. Warm smell of colitas, rising up through the air 5. Up ahead in the distance, I saw a shimmering light 6. My head grew heavy and my sight grew dim 7. I had to stop for the night 8. There she stood in the doorway 9. I heard the mission bell 10. And I was thinking to myself 11. "This could be Heaven or this could be Hell" 12. Then she lit up a candle and she showed me the way 13. There were voices down the corridor 14. I thought I heard them say 15. 16. Welcome to the Hotel California 17. Such a lovely place (Such a lovely place) 18. Such a lovely face 19. Plenty of room at the Hotel California 20. Any time of year (Any time of year) 21. You can find it here 22. 23. Her mind is Tiffany-twisted, she got the Mercedes bends 24. She got a lot of pretty, pretty boys she calls friends 25. How they dance in the courtyard, sweet summer sweat 26. Some dance to remember, some dance to forget. Binding to 0.0.0.01111 Handling client 26. .62 25. . tegrof ot ecnad emos, rebmemer ot ecnad emos 24. taews remmus teews, draytruoc eht ni ecnad yeht woH 23. sdneirf sllac ehs syob ytterp, ytterp fo tol a tog ehs 22. sdneb sedecrem eht tog ehs, detsiwt-ynaffit si dnim reH 21. ereh ti dnif nac uo 20. ereh ti dnif nac uoY 19. ) raey fo emit ynA ( raey fo emit ynA 18. ainrofilaC letoH eht ta moor fo ytnelp 17. ecaf ylevol a hcus 16. ) ecalp ylevol a hcuS ( ecalp ylevol a hcus 15. ainrofilac letoH eht ot emoclew 14. yas meht draeh I thguoht 13. yas meht draeh I thguoht I 12. rodirroc eht nod seciov erew erehT 11. yaw eht em dewohs ehs dna eldnac a pu til ehs neht 10. "lleH eb dluoc siht ro nevaeH eb dluoc sihT" 9. flesym ot gnikniht saw I dnA 8. lleb noissim eht draeh I 7. yawrood eht ni doots ehs erehT 6. thgin eht rof pots ot dah I 5. mid werg thgis ym dna yvaeh werg daeh ym 4. thgil gniremmihs a was I, ecnatsid eht ni daeha pU 3. ria eht hguorht pu gnisir, satiloc fo llems mraw 2. riah ym ni dniw looc, yawhgih tresed krad a no 1. ainrofilac letoHbl? Goodbye

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!