Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gets an IP or hostname address to connect to as commandline argument, i. e.
- creates socket with socket()
- makes a connection with connect()
- prompts user to input a string to send to the server. reads the string, sends to the server with write().
- when receives an answer from the server, prints it to standard output.
- stays connected as long as server does not close the connection.
Add Comment
Please, Sign In to add comment