Skip to content

Latest commit

 

History

History

basic-socket-server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Create a tcp socket that listens on port 80 on local host,

When a user connects to the socket, the following should happen:

  • If the user sends a string containing only the word "exit", the socket and connection should close and the function should end.
  • For any other string the user sends, the server should send a copy of the string back to the user.

you can assume short strings all ending in "\n" other than "exit"