/* * call-seq: * * io.kgio_autopush? -> true or false * * Returns the current autopush state of the Kgio::SocketMethods-enabled * socket. * * Only available on systems with TCP_CORK (Linux) or * TCP_NOPUSH (FreeBSD, and maybe other *BSDs). */ static VALUE autopush_get(VALUE io) { return state_get(io) <= 0 ? Qfalse : Qtrue; }