Java Network Programming Transmission Control Protocol TCP (3)

xiaoxiao2021-03-06  92

After discussing the function of the socket, we will analyze a complete TCP client program. Here we will see the client program is a Daytime client, which is connected to a Daytime server program to read the current date and time. Building a socket connection and reading information is a fairly simple process, only a small amount of code. By default, the DayTime service runs on the 13-port. Not each computer runs a Daytime server program, but UNIX servers are a good system that is running.