Graphically:
(Source-IP-Addr, SourcePort#, Dest-IP-Addr, DestPort#)
Example:
(Source-IP-Addr, SourcePort#, Dest-IP-Addr, DestPort#) and (Dest-IP-Addr, DestPort#, Source-IP-Addr, SourcePort#)
are 2 different TCP connections !!!
(We say that TCP is state-full protocol)
(and cannot be recovered)
(I.e.: your program will exit when the other party crashes....)