Why is port sharing not supported in the case of Linux clients?

client initiates tcp connection con1:Aip: Aport- > Bip:Bport, does not have a problem, do not close the connection,
initiate tcp connection con2:Aip:Aport- > Cip:Bport, will address already in use, according to the quad, the two connections are not the same connection, why can"t the ports be shared? When the client initiates the connection and specifies a port

Mar.11,2022

A popular example: there is only one phone in the phone booth. If this phone is being used by someone else, can you still use it?

The same is true for

on ip communications. Therefore, in general, when the client sends a request to the server, it will not specify a port, but let the system automatically assign one (when you do not specify a port, the system will automatically assign it).


is not impossible. If it is socket , you can achieve it by setting port reuse. Just write a piece of code to demonstrate

.
   

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be88aa-318f2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be88aa-318f2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?