There are quite a few options that should be queryable with getsockopt() ( http://man7.org/linux/man-pages/man7/socket.7.html ) but this would return error with all of them. Perhaps we should instead enumerate the options here which we are expected to support, but currently don't, and return 0; on them, perhaps Module.print()ing a warning that has TODO: Not implemented ?