Tuesday, June 19, 2007

What are different socket options?

The different Socket options are :

SO_TIMEOUT
SO_LINGER
TCP_NODELAY
SO_RCVBUF
SO_SNDBUF.

They may be specified in various scenarios e.g. one might like to specify a timeout for read operations, to control the amount of time a connection will linger for before a reset is sent, whether Nagle's algorithm is enabled/disabled, or the send and receive buffers for datagram sockets.

0 comments :

 

Disclaimer
Interview Questions On Java,Java EE Copyright © 2016. Reads: best tracker