Verdi March wrote:
Jerry Feldman wrote:
In the case of UDP, it is a bit different since a 2-way connection is
not
established. The server only needs to wait for data on the socket, and process them when they come in from various hosts.
Now that you mention UDP, the article is on NAT and P2P applications and discusses techniques to go through NAT using UDP. Perhaps the sender can open a UDP port and send to different dst_ip:dst_port from the same UDP src_port?
This is perfectly possible. Just look at the sendto(3) call.
What about TCP session? The article does not mention that it is with TCP, but it implies that the scenario (same src_ip:src_port for 2 sessions to 2 different remote IP) it can be done too with TCP.
As people said, as long as the one of src_ip:src_port/dst_ip:dst_port if different, it is ok. But and don't know any call at the sockets API where you can do it. Maybe it is possible with a lower level API. []s Davi de Castro Reis