which socket should socket option on be set

Hi all,

On the server side, one socket is used for listening, the others are used for communicating with the client.

My question is: if i want to set option for socket, which socket should be set on?

If either can be set, what's the different?

Again, what's the different if set option on client side?

Thanks!

That all depends on what you are trying to do i.e. what socket option you are trying to set.