Analysis
■
At line 32, command-line arguments are checked and validated.
■
At line 51, the Integer parseInt() method is used to convert the port value sup-
plied on the command line to an integer primitive-type suitable for the Socket
class constructor.
■
At line 54, a new Socket instance is created using the Socket constructor and
the IP address and port supplied on the command line.The TCP connection is
established during this operation. If an error occurs, such as inability to estab-
lish the desired connection, an IOException instance is thrown.
■
At line 57, the InputStream instance that data is read from is retrieved from the
Socket instance using the getInputStream() method.
■
At line 58, the OutputStream instance that data is written from is retr ...