'Return the errno expected to result from writing to a closed
platform socket handle.'

def getHandleErrorCode(self):

    if (platform.isWindows() and _PY3):
        return errno.WSAENOTSOCK
    return errno.EBADF
