C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 06-05-2004, 10:46 AM   #1
Registered User
 
Join Date: May 2004
Posts: 21
Can TCP sockets also receive ICMP...?

hi
I know some ICMP errors are only returned if datagram that caused it is of UDP type(ICMP port unreachable).
But what ICMP errors do get returned to TPC sockets?
When TCP socket in an already established connection specifies SSRR and one of routers can't forward datagram to the next hop,does it return ICMP source route error to this socket?If so,is this ICMP packet silently discarded by the kernel and not returned to socket?

thank you
failure_to is offline   Reply With Quote
Old 06-08-2004, 11:43 AM   #2
and the hat of marbles
 
Sang-drax's Avatar
 
Join Date: May 2002
Location: Lund, Sweden
Posts: 2,040
Here's an answer (you've probably read it, though).
http://www.computing.net/networking/...rum/20856.html

But ICMP errors like port unreachable aren't used by TCP. TCP has it's own way to say 'port unreachable'.
__________________
Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling
Sang-drax is offline   Reply With Quote
Old 06-08-2004, 06:41 PM   #3
Registered User
 
Join Date: May 2004
Posts: 21
Quote:
Originally Posted by Sang-drax
Here's an answer (you've probably read it, though).
http://www.computing.net/networking/...rum/20856.html
Stalker.There's a reason I asked in two forums;and that'scos each answer gives birth to more questions and I doubt any person would be willing to answer them all.And besides,if I have a question it usually means I need an answer as soon as possible(are you any different?)and while some question may take days to get answered on some forums,you may get lucky on others.

Quote:
But ICMP errors like port unreachable aren't used by TCP. TCP has it's own way to say 'port unreachable'.
I know,it sends RST
failure_to is offline   Reply With Quote
Old 06-09-2004, 10:36 AM   #4
and the hat of marbles
 
Sang-drax's Avatar
 
Join Date: May 2002
Location: Lund, Sweden
Posts: 2,040
The reason I posted the link wasn't for you, as I knew you'd read it, but for the other people on the forum that might read this thread.
__________________
Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling
Sang-drax is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TCP Sockets: multiple clients - one server Printisor C Programming 4 11-01-2007 10:34 AM
TCP sockets classes Camel Linux Programming 5 12-17-2006 07:29 PM
Obtaining source & destination IP,details of ICMP Header & each of field of it ??? cromologic Networking/Device Communication 1 04-29-2006 02:49 PM
Tcp and icmp Question invisibleghost Networking/Device Communication 9 08-12-2005 05:23 AM


All times are GMT -6. The time now is 12:14 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22