Consider the partial code given below for the TCP chent that is supposed to connect to the server. Upon connection to the server, the following communication should occur: ClientHello from Client. Thank you for connecting me to the midterm server. Server: "You are welcome Client:"Server says: You are welcome 0 BI public MidtermServeriet portthrows IOException modatnew Serversodatport myserverSortsetso Timeout(10000) 1 data- Sedemnacepto ceto- Consider the partial code given below for the TCP client that is supposed to connect to the Server. Upon connection to the server the following communication should occur Client: "Hello from Cient. Thank you for connecting me to the midterm server. Server: "You are welcome Client:"Server says: You are welcome Paragraph BIE DatainputStream(server.getInputStreamox System.out.println(in.readUTFOR DataOutputStream out new DataOutputStream(server getOutputStream): out writeUTFC"You are welcome server.dose I 1 catch (SortTimeout ception System.out.printl Sorry you waited too long to connect to the socket break catch Exception et 1 sider the partial code given below for the TCP client that is supposed to connect to the Server. Upon connection to the server, the following communication should occur ent: "Hello from Client. Thank you for connecting me to the midterm server." erver: You are welcome Mient:"Server says: You are welcome Paragraph - BIELE public static void main(String[] args) int part 5858 try Threadnew Midterm Server port: tanto 1 catch Oxception et e.printStackTrace T 1 1 bite des Heritat public static void main(String tl args) I client.close ) catch (est) ..printStackTraces aj Put comments on the spectSensodort instructions above to show the steps needed to establish a server stream (2.5 Marks) by Complete the Socient cierto send a message to the server hello trim client and accepts a message from the sever You are welcome and prints on the console Support the centre connector the Explain what wat be the output on the clients de console what will be the output on the server console Consider the partial code given below for the TCP chent that is supposed to connect to the server. Upon connection to the server, the following communication should occur: ClientHello from Client. Thank you for connecting me to the midterm server. Server: "You are welcome Client:"Server says: You are welcome 0 BI public MidtermServeriet portthrows IOException modatnew Serversodatport myserverSortsetso Timeout(10000) 1 data- Sedemnacepto ceto- Consider the partial code given below for the TCP client that is supposed to connect to the Server. Upon connection to the server the following communication should occur Client: "Hello from Cient. Thank you for connecting me to the midterm server. Server: "You are welcome Client:"Server says: You are welcome Paragraph BIE DatainputStream(server.getInputStreamox System.out.println(in.readUTFOR DataOutputStream out new DataOutputStream(server getOutputStream): out writeUTFC"You are welcome server.dose I 1 catch (SortTimeout ception System.out.printl Sorry you waited too long to connect to the socket break catch Exception et 1 sider the partial code given below for the TCP client that is supposed to connect to the Server. Upon connection to the server, the following communication should occur ent: "Hello from Client. Thank you for connecting me to the midterm server." erver: You are welcome Mient:"Server says: You are welcome Paragraph - BIELE public static void main(String[] args) int part 5858 try Threadnew Midterm Server port: tanto 1 catch Oxception et e.printStackTrace T 1 1 bite des Heritat public static void main(String tl args) I client.close ) catch (est) ..printStackTraces aj Put comments on the spectSensodort instructions above to show the steps needed to establish a server stream (2.5 Marks) by Complete the Socient cierto send a message to the server hello trim client and accepts a message from the sever You are welcome and prints on the console Support the centre connector the Explain what wat be the output on the clients de console what will be the output on the server console