Top Fields Constructors Methods
org.jruby.ext.socket

public Class RubyIPSocket

extends RubyBasicSocket
Class Inheritance
Known Direct Subclasses
org.jruby.ext.socket.RubyTCPSocket, org.jruby.ext.socket.RubyUDPSocket
Annotations
@JRubyClass
name:IPSocket
parent:BasicSocket
Imports
org.jruby.Ruby, .RubyBasicObject, .RubyClass, org.jruby.anno.JRubyClass, .JRubyMethod, org.jruby.runtime.Arity, .ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.TypeConverter, org.jruby.util.io.Sockaddr, java.net.InetSocketAddress

Field Summary

Inherited from org.jruby.ext.socket.RubyBasicSocket:
libnamesmulticastStateManagerSOCKOPT

Constructor Summary

AccessConstructor and Description
public
RubyIPSocket(Ruby runtime, RubyClass type)

Method Summary

Modifier and TypeMethod and Description
public IRubyObject
public IRubyObject
addr(ThreadContext context, IRubyObject reverse)

public IRubyObject
addr()
Deprecated

private IRubyObject
private IRubyObject
addrCommon(ThreadContext context, boolean reverse)

private void
pack-priv static RubyClass
createIPSocket(ThreadContext context, RubyClass BasicSocket)

public static Boolean
public static IRubyObject
public static IRubyObject
getaddress(IRubyObject recv, IRubyObject hostname)
Deprecated

public IRubyObject
public IRubyObject
protected IRubyObject
public IRubyObject
public IRubyObject
public IRubyObject
peeraddr()
Deprecated

private IRubyObject
private IRubyObject
peeraddrCommon(ThreadContext context, boolean reverse)

public IRubyObject
public IRubyObject
recvfrom(ThreadContext context, IRubyObject _length, IRubyObject _flags)

public IRubyObject
recvfrom(ThreadContext context, IRubyObject[] args)
Deprecated

Inherited from org.jruby.ext.socket.RubyBasicSocket:
addrForasBooleanbindContextMessagebindContextMessageclose_readclose_writecreateBasicSocketdo_not_reverse_lookupdo_not_reverse_lookupdo_not_reverse_lookupdoNotReverseLookupdoReaddoReadNonblockextractExceptionArgfor_fdgetInetRemoteSocketgetInetRemoteSocketgetInetSocketAddressgetpeernamegetRemoteSocketgetRemoteSocketgetSocketAddressgetsocknamegetsocknamegetsockoptgetsockoptgetUnixRemoteSocketgetUnixRemoteSocketgetUnixSocketAddressinitSocketlocal_addressnewChannelFDread_nonblockread_nonblockread_nonblockread_nonblockrecvrecvrecvrecv_nonblockrecvmsgrecvmsg_nonblockremote_addresssendsendsendmsgsendmsg_nonblockset_do_not_reverse_lookupset_do_not_reverse_lookupset_do_not_reverse_lookupsetsockoptsetsockoptsetsockoptshutdownsockerr

Constructor Detail

RubyIPSocketback to summary
public RubyIPSocket(Ruby runtime, RubyClass type)

Method Detail

addrback to summary
public IRubyObject addr(ThreadContext context)
Annotations
@JRubyMethod
name:addr
addrback to summary
public IRubyObject addr(ThreadContext context, IRubyObject reverse)
Annotations
@JRubyMethod
name:addr
addrback to summary
public IRubyObject addr()

Deprecated

Annotations
@Deprecated
addrCommonback to summary
private IRubyObject addrCommon(ThreadContext context, IRubyObject reverse)
addrCommonback to summary
private IRubyObject addrCommon(ThreadContext context, boolean reverse)
checkAddressback to summary
private void checkAddress(ThreadContext context, InetSocketAddress address)
createIPSocketback to summary
pack-priv static RubyClass createIPSocket(ThreadContext context, RubyClass BasicSocket)
doReverseLookupback to summary
public static Boolean doReverseLookup(ThreadContext context, IRubyObject noreverse)
getaddressback to summary
public static IRubyObject getaddress(ThreadContext context, IRubyObject self, IRubyObject hostname)
Annotations
@JRubyMethod
meta:true
getaddressback to summary
public static IRubyObject getaddress(IRubyObject recv, IRubyObject hostname)

Deprecated

Annotations
@Deprecated
getpeereidback to summary
public IRubyObject getpeereid(ThreadContext context)

Overrides org.jruby.ext.socket.RubyBasicSocket.getpeereid.

Annotations
@JRubyMethod
name:getpeereid
notImplemented:true
getpeernameback to summary
public IRubyObject getpeername(ThreadContext context)

Overrides org.jruby.ext.socket.RubyBasicSocket.getpeername.

Annotations
@Override
getSocknameCommonback to summary
protected IRubyObject getSocknameCommon(ThreadContext context, String caller)

Overrides org.jruby.ext.socket.RubyBasicSocket.getSocknameCommon.

Annotations
@Override
peeraddrback to summary
public IRubyObject peeraddr(ThreadContext context)
Annotations
@JRubyMethod
name:peeraddr
peeraddrback to summary
public IRubyObject peeraddr(ThreadContext context, IRubyObject reverse)
Annotations
@JRubyMethod
name:peeraddr
peeraddrback to summary
public IRubyObject peeraddr()

Deprecated

Annotations
@Deprecated
peeraddrCommonback to summary
private IRubyObject peeraddrCommon(ThreadContext context, IRubyObject reverse)
peeraddrCommonback to summary
private IRubyObject peeraddrCommon(ThreadContext context, boolean reverse)
recvfromback to summary
public IRubyObject recvfrom(ThreadContext context, IRubyObject _length)
Annotations
@JRubyMethod
recvfromback to summary
public IRubyObject recvfrom(ThreadContext context, IRubyObject _length, IRubyObject _flags)
Annotations
@JRubyMethod
recvfromback to summary
public IRubyObject recvfrom(ThreadContext context, IRubyObject[] args)

Deprecated

Annotations
@Deprecated