Socket Programing UDP GetSocketOpt.

Posted by Steve on Stack Overflow See other posts from Stack Overflow or by Steve
Published on 2010-04-06T00:40:39Z Indexed on 2010/04/06 0:43 UTC
Read the original article Hit count: 929

Filed under:

A third Party library gives us just the created socket on which listen data. Now this socket can be udp or tcp,

I am not able to figure out which options to give to getsockopt to figure out whether the socket is udp or tcp.

SOL_SOCKET, SO_BROADCAST doesn't seem to serve this purpose.

© Stack Overflow or respective owner

Related posts about bsd-sockets