Jump to content

breaking a server loop with enter key

- - - - -

  • Please log in to reply
1 reply to this topic

#1
smoalne

smoalne

    Newbie

  • Members
  • Pip
  • 1 posts
right now i am trying to code a TCP echo server with existing code from TCP/IP Sockets in C: Practical Guide for Programmers. I want to have it echo a whole message back instead of just echoing each key stroke, but despite my best efforts the if statement i try to use to break the while loop doesn't seem to fire off. If anyone has advice about how to do this i would love to hear from you !

#2
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,719 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
Can you post your modifications to the code? (Or just the whole thing.)
sudo rm -rf /




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users