Java Network Programming Transmission Control Protocol (2)

xiaoxiao2021-03-06  119

The Socket class shows the client sleeve, which is a communication channel between two TCP communication ports belonging to one or two computers. The port can be connected to another port of the local system, which avoids using another computer, but most network software will use two computers. But TCP sockets cannot communicate with two more than two computers. If this feature is required, the client application must build multiple socket connections, one socket per computer.