I am working on UDP socket programming, and I have to stop the transmission in application, if requested data is more than MTU value.
To achieve this I have to read MTU value but I don't know how to get MTU value (could be by using getsockopt()) in case of UDP sockets.
Is there any way to find the MTU value with UDP sockets?