What are socket exceptions? What is out-of-band data?

Answer Posted / chaitanya

Unlike exceptions in C++, socket exceptions do not indicate that an error has occured. Socket exceptions usually refer to the notification that out-of-band data has arrived. Out-of-band data (called "urgent data" in TCP) looks to the application like a separate stream of data from the main data stream. This can be useful for separating two different kinds of data. Note that just because it is called "urgent data" does not mean that it will be delivered any faster, or with higher priorety than data in the in-band data stream. Also beware that unlike the main data stream, the out-of-bound data may be lost if your application can't keep up with it.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between SO_REUSEADDR and SO_REUSEPORT?

1564


What is difference between socket and websocket?

645


What is difference between socket () and serversocket () class?

639


What is a sae socket?

712


What is the function of socket?

672


What does af mean in sockets?

686


How are unix domain sockets implemented?

643


How does a socket work?

644


What is the difference between a socket and a port?

633


What is active unix domain sockets?

707


Can multiple sockets use the same port?

647


Is a socket a file?

620


What's the difference between impact sockets and regular sockets?

625


What is a deep well socket?

702


How to find other end of unix socket connection?

669