My solutions to the tasks for KTH course IK1203 Networking and Communication
- Task 1
- Task 2
- Task 3
- Task 4
Implement a TCP client, called TCPAsk. TCPAsk operates in a straight-forward manner:
- Open a TCP connection to a server at a given host address and port number.
- Take any data that the server sends, and and print the data.
- TCPAsk takes an optional string as parameter. This string is sent as data to the server when the TCP connection is opened, followed by a newline character (linefeed '\n').
Implement a TCP server, called HTTPEcho. HTTPEcho does the following:
- Opens up a server on a given port number.
- The server replies with a valid HTTP response and echoes any data sent.
TODO
TODO