Reputation: 5
I know you can get the destination address for messages coming into a SOCK_DGRAM socket by using recvmsg. I would like to know how to get the destination address (from peer perspective) for a socket created by calling the accept function on a socket of type SOCK_STREAM. In other words, how can I get the destination address of the SYN packet that caused accept to return?
Upvotes: 0
Views: 1313