-
January 28th, 2013, 12:30 PM
#1
How are ICMP replies associated with the request socket?
Maybe this is a silly question, but if I create a socket and send an ICMP echo request with sendto(), I can receive the echo reply with recvfrom(). How does the underlying network system know that the incoming reply is associated with my socket? In other words, why do I receive my echo reply with recvfrom() and not other echo replies to other programs that are also sending echo requests? Is there some kind of ID field in some protocol header somewhere that the system has associated with my socket?
Thanks,
M
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|