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

Why sockets are used?

525


Whats the difference between select() and poll()?

1214


Why do we need sockets?

488


Is a socket a file?

480


What is the difference between a socket and a port?

467






How does a socket work?

493


Is there any advantage to handling the signal, rather than just ignoring it and checking for the EPIPE error? Are there any useful parameters passed to the signal catching function?

1041


How can I write a multi-homed server?

1275


What is active unix domain sockets?

552


What is socket programming in java?

492


What is a socket set used for?

506


Can a socket have multiple ports?

506


Can a single socket port be used for multiple applications?

458


What does af mean in sockets?

524


How can I set the timeout for the connect() system call?

1114