| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern | |
| private static final Pattern | |
| private static final String | |
| protected AddressFamily | |
| protected Protocol | |
| protected ProtocolFamily | |
| protected Sock |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public IRubyObject | |
| public IRubyObject | |
| private SocketAddress | |
| protected IRubyObject | addrFor(ThreadContext context, InetSocketAddress addr, boolean reverse)
Overrides org.
|
| public IRubyObject | |
| pack-priv static RaiseException | buildSocketException(final Ruby runtime, final SocketException ex, final String caller, final SocketAddress addr)
|
| public IRubyObject | close(final ThreadContext context)
Overrides org. Closes all open resources for the IO. |
| public RubyBoolean | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| pack-priv static RubyClass | |
| protected void | |
| protected IRubyObject | |
| private IRubyObject | |
| public static IRubyObject | for_fd(ThreadContext context, IRubyObject socketClass, IRubyObject _fd)
Hides org.
|
| private static CharSequence | |
| public static IRubyObject | |
| private static RubyBoolean | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| protected SocketAddress | |
| protected ChannelFD | |
| private void | |
| private void | |
| private void | |
| protected void | |
| public IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private void | |
| private void | |
| private void | |
| public static RuntimeException | |
| public static IRubyObject | socketpair(ThreadContext context, IRubyObject recv, IRubyObject domain, IRubyObject type, IRubyObject protocol)
|
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| private boolean | tryConnect(ThreadContext context, Channel channel, SocketAddress addr, boolean ex, boolean blocking)
|
| public static IRubyObject | |
| public static IRubyObject |
| ADDR_NOT_AVAIL_PATTERN | back to summary |
|---|---|
| private static final Pattern ADDR_NOT_AVAIL_PATTERN | |
| ALREADY_BOUND_PATTERN | back to summary |
|---|---|
| private static final Pattern ALREADY_BOUND_PATTERN | |
| JRUBY_SERVER_SOCKET_ERROR | back to summary |
|---|---|
| private static final String JRUBY_SERVER_SOCKET_ERROR | |
| soDomain | back to summary |
|---|---|
| protected AddressFamily soDomain | |
| soProtocol | back to summary |
|---|---|
| protected Protocol soProtocol | |
| soProtocolFamily | back to summary |
|---|---|
| protected ProtocolFamily soProtocolFamily | |
| soType | back to summary |
|---|---|
| protected Sock soType | |
| RubySocket | back to summary |
|---|---|
| public RubySocket(Ruby runtime, RubyClass type) | |
| accept | back to summary |
|---|---|
public IRubyObject accept(ThreadContext context)
| |
| accept_nonblock | back to summary |
|---|---|
public IRubyObject accept_nonblock(ThreadContext context, IRubyObject[] args)
| |
| addressForChannel | back to summary |
|---|---|
| private SocketAddress addressForChannel(ThreadContext context, IRubyObject arg) | |
| addrFor | back to summary |
|---|---|
| protected IRubyObject addrFor(ThreadContext context, InetSocketAddress addr, boolean reverse) Overrides org.
| |
| bind | back to summary |
|---|---|
public IRubyObject bind(ThreadContext context, IRubyObject arg)
| |
| buildSocketException | back to summary |
|---|---|
| pack-priv static RaiseException buildSocketException(final Ruby runtime, final SocketException ex, final String caller, final SocketAddress addr) | |
| close | back to summary |
|---|---|
| public IRubyObject close(final ThreadContext context) Overrides org. Doc from org. Closes all open resources for the IO. It also removes it from our magical all open file descriptor pool.
| |
| closed_p | back to summary |
|---|---|
| public RubyBoolean closed_p(ThreadContext context) Overrides org.
| |
| connect | back to summary |
|---|---|
public IRubyObject connect(ThreadContext context, IRubyObject arg)
| |
| connect_nonblock | back to summary |
|---|---|
public IRubyObject connect_nonblock(ThreadContext context, IRubyObject arg)
| |
| connect_nonblock | back to summary |
|---|---|
public IRubyObject connect_nonblock(ThreadContext context, IRubyObject arg, IRubyObject opts)
| |
| createSocket | back to summary |
|---|---|
| pack-priv static RubyClass createSocket(ThreadContext context, RubyClass BasicSocket) | |
| doBind | back to summary |
|---|---|
| protected void doBind(ThreadContext context, SocketAddress iaddr) | |
| doConnect | back to summary |
|---|---|
| protected IRubyObject doConnect(ThreadContext context, SocketAddress addr, boolean ex) | |
| doConnectNonblock | back to summary |
|---|---|
| private IRubyObject doConnectNonblock(ThreadContext context, SocketAddress addr, boolean ex) | |
| for_fd | back to summary |
|---|---|
| public static IRubyObject for_fd(ThreadContext context, IRubyObject socketClass, IRubyObject _fd) Hides org.
| |
| formatAddress | back to summary |
|---|---|
| private static CharSequence formatAddress(final SocketAddress addr) | |
| getaddrinfo | back to summary |
|---|---|
public static IRubyObject getaddrinfo(ThreadContext context, IRubyObject recv, IRubyObject[] args)
| |
| getFastFallbackDefault | back to summary |
|---|---|
| private static RubyBoolean getFastFallbackDefault(ThreadContext context) | |
| gethostbyaddr | back to summary |
|---|---|
public static IRubyObject gethostbyaddr(ThreadContext context, IRubyObject recv, IRubyObject[] args)
| |
| gethostbyname | back to summary |
|---|---|
public static IRubyObject gethostbyname(ThreadContext context, IRubyObject recv, IRubyObject hostname)
| |
| gethostname | back to summary |
|---|---|
public static IRubyObject gethostname(ThreadContext context, IRubyObject recv)
| |
| getifaddrs | back to summary |
|---|---|
public static IRubyObject getifaddrs(ThreadContext context, IRubyObject recv)
| |
| getnameinfo | back to summary |
|---|---|
public static IRubyObject getnameinfo(ThreadContext context, IRubyObject recv, IRubyObject[] args)
| |
| getservbyname | back to summary |
|---|---|
public static IRubyObject getservbyname(ThreadContext context, IRubyObject recv, IRubyObject[] args)
| |
| getSocketAddress | back to summary |
|---|---|
| protected SocketAddress getSocketAddress() Overrides org. | |
| initChannelFD | back to summary |
|---|---|
| protected ChannelFD initChannelFD(Ruby runtime) | |
| initFieldsFromDescriptor | back to summary |
|---|---|
| private void initFieldsFromDescriptor(Ruby runtime, ChannelFD fd) | |
| initFromArgs | back to summary |
|---|---|
| private void initFromArgs(ThreadContext context, IRubyObject domain, IRubyObject type, IRubyObject protocol) | |
| initFromArgs | back to summary |
|---|---|
| private void initFromArgs(ThreadContext context, IRubyObject domain, IRubyObject type) | |
| initFromServer | back to summary |
|---|---|
| protected void initFromServer(Ruby runtime, RubySocket serverSocket, SocketChannel socketChannel) | |
| initialize | back to summary |
|---|---|
public IRubyObject initialize(ThreadContext context, IRubyObject domain, IRubyObject type)
| |
| initialize | back to summary |
|---|---|
public IRubyObject initialize(ThreadContext context, IRubyObject domain, IRubyObject type, IRubyObject protocol)
| |
| ip_address_list | back to summary |
|---|---|
public static IRubyObject ip_address_list(ThreadContext context, IRubyObject self)
| |
| listen | back to summary |
|---|---|
public IRubyObject listen(ThreadContext context, IRubyObject backlog)
| |
| pack_sockaddr_in | back to summary |
|---|---|
public static IRubyObject pack_sockaddr_in(ThreadContext context, IRubyObject recv, IRubyObject port, IRubyObject host)
| |
| pack_sockaddr_un | back to summary |
|---|---|
public static IRubyObject pack_sockaddr_un(ThreadContext context, IRubyObject recv, IRubyObject filename)
| |
| recvfrom | back to summary |
|---|---|
public IRubyObject recvfrom(ThreadContext context, IRubyObject _length)
| |
| recvfrom | back to summary |
|---|---|
| public IRubyObject recvfrom(ThreadContext context, IRubyObject _length, IRubyObject _flags) Overrides IPSocket#recvfrom
| |
| recvfrom_nonblock | back to summary |
|---|---|
public IRubyObject recvfrom_nonblock(ThreadContext context, IRubyObject[] args)
| |
| setDomain | back to summary |
|---|---|
| private void setDomain(ThreadContext context, IRubyObject domain) | |
| setProtocol | back to summary |
|---|---|
| private void setProtocol(ThreadContext context, IRubyObject protocol) | |
| setType | back to summary |
|---|---|
| private void setType(ThreadContext context, IRubyObject type) | |
| sockerr | back to summary |
|---|---|
| public static RuntimeException sockerr(Ruby runtime, String msg)
Deprecated
| |
| socketpair | back to summary |
|---|---|
public static IRubyObject socketpair(ThreadContext context, IRubyObject recv, IRubyObject domain, IRubyObject type, IRubyObject protocol)
| |
| socketpair | back to summary |
|---|---|
public static IRubyObject socketpair(ThreadContext context, IRubyObject recv, IRubyObject domain, IRubyObject type)
| |
| tcp_fast_fallback | back to summary |
|---|---|
public static IRubyObject tcp_fast_fallback(ThreadContext context, IRubyObject self)
| |
| tcp_fast_fallback_set | back to summary |
|---|---|
public static IRubyObject tcp_fast_fallback_set(ThreadContext context, IRubyObject self, IRubyObject value)
| |
| tryConnect | back to summary |
|---|---|
| private boolean tryConnect(ThreadContext context, Channel channel, SocketAddress addr, boolean ex, boolean blocking) | |
| unpack_sockaddr_in | back to summary |
|---|---|
public static IRubyObject unpack_sockaddr_in(ThreadContext context, IRubyObject recv, IRubyObject addr)
| |
| unpack_sockaddr_un | back to summary |
|---|---|
public static IRubyObject unpack_sockaddr_un(ThreadContext context, IRubyObject recv, IRubyObject addr)
| |