我基于OneConnector示例创建了一个简单的嵌入式码头项目。
当我启动示例时,我看到一个 TCP 连接处于我希望看到的侦听状态。也有相当多的 TCP 连接处于已建立状态。
它们为什么在那里,为什么会有这么多,它们是用来做什么的?
在 TCPView 我看到以下连接:
java.exe:14536 TCP my-pc:8080 my-pc.tfs.attix5.com:0 LISTENING
java.exe:14536 TCP my-pc:56791 localhost:56792 ESTABLISHED
java.exe:14536 TCP my-pc:56792 localhost:56791 ESTABLISHED
java.exe:14536 TCP my-pc:56793 localhost:56794 ESTABLISHED
java.exe:14536 TCP my-pc:56794 localhost:56793 ESTABLISHED
java.exe:14536 TCP my-pc:56795 localhost:56796 ESTABLISHED
java.exe:14536 TCP my-pc:56796 localhost:56795 ESTABLISHED
java.exe:14536 TCP my-pc:56797 localhost:56798 ESTABLISHED
java.exe:14536 TCP my-pc:56798 localhost:56797 ESTABLISHED
java.exe:14536 TCP my-pc:56799 localhost:56800 ESTABLISHED
java.exe:14536 TCP my-pc:56800 localhost:56799 ESTABLISHED
java.exe:14536 TCP my-pc:56801 localhost:56802 ESTABLISHED
java.exe:14536 TCP my-pc:56802 localhost:56801 ESTABLISHED
java.exe:14536 TCP my-pc:56803 localhost:56804 ESTABLISHED
java.exe:14536 TCP my-pc:56804 localhost:56803 ESTABLISHED
java.exe:14536 TCP my-pc:56805 localhost:56806 ESTABLISHED
java.exe:14536 TCP my-pc:56806 localhost:56805 ESTABLISHED