Module: Kgio::SocketMethods

### Home Classes Methods

### In Files

- ext/kgio/accept.c

### Methods

- #kgio_autopush=
- #kgio_autopush?

### Included Modules

- Kgio::DefaultWaiters

### Files

- HACKING
- ISSUES
- LATEST
- LICENSE
- NEWS
- README
- TODO

### Class/Module Index

Quicksearch

- Kgio
- Kgio::DefaultWaiters
- Kgio::File
- Kgio::Pipe
- Kgio::PipeMethods
- Kgio::Socket
- Kgio::SocketMethods
- Kgio::TCPServer
- Kgio::TCPSocket
- Kgio::UNIXServer
- Kgio::UNIXSocket

No matching classes.

# Kgio::SocketMethods

### Attributes

kgio_addr[RW]

Returns the client IP address of the socket as a string (e.g. "127.0.0.1" or "::1"). This is always the value of the Kgio::LOCALHOST constant for UNIX domain sockets.

### Public Instance Methods

kgio_autopush = true click to toggle source
kgio_autopush = false

Enables or disables autopush on any given Kgio::SocketMethods-capable IO object. This does NOT enable or disable TCP_NOPUSH/TCP_CORK right away, that must be done with IO.setsockopt

Only available on systems with TCP_CORK (Linux) or TCP_NOPUSH (FreeBSD, and maybe other *BSDs).

    static VALUE autopush_set(VALUE io, VALUE vbool)
    {
            if (RTEST(vbool))
                    state_set(io, AUTOPUSH_STATE_WRITER);
            else
                    state_set(io, AUTOPUSH_STATE_IGNORE);
            return vbool;
    }

kgio_autopush? → true or false click to toggle source

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;
    }

[Validate]

Generated with the Darkfish Rdoc Generator 2.