Top Constructors Methods
org.jruby.ext.socket

public Class RubyTCPSocket

extends RubyIPSocket
Class Inheritance
Known Direct Subclasses
org.jruby.ext.socket.RubyTCPServer
Imports
jnr.constants.platform.Errno, org.jruby.Ruby, .RubyArray, .RubyBasicObject, .RubyClass, .RubyHash, org.jruby.anno.JRubyMethod, org.jruby.ast.util.ArgsUtil, org.jruby.runtime.Arity, .Block, .ThreadContext, .Visibility, org.jruby.runtime.builtin.IRubyObject, java.io.IOException, java.net.BindException, .ConnectException, .Inet4Address, .InetAddress, .InetSocketAddress, .NoRouteToHostException, .StandardSocketOptions, .UnknownHostException, java.nio.channels.ClosedChannelException, .SelectionKey, .SocketChannel

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
private SocketChannel
attemptConnect(ThreadContext context, IRubyObject host, String localHost, int localPort, String remoteHost, int remotePort, RubyHash opts)

pack-priv static RubyClass
public static IRubyObject
public static IRubyObject
gethostbyname(IRubyObject recv, IRubyObject hostname)
Deprecated

public IRubyObject
public IRubyObject
initialize(ThreadContext context, IRubyObject host, IRubyObject port, IRubyObject localOrOpts)

public IRubyObject
public IRubyObject
initialize(ThreadContext context, String remoteHost, int remotePort, IRubyObject host, String localHost, int localPort, RubyHash opts)

public static IRubyObject
open(IRubyObject recv, IRubyObject[] args, Block block)
Deprecated

Inherited from org.jruby.ext.socket.RubyIPSocket:
addraddraddrcreateIPSocketdoReverseLookupgetaddressgetaddressgetpeereidgetpeernamegetSocknameCommonpeeraddrpeeraddrpeeraddrrecvfromrecvfromrecvfrom

Constructor Detail

RubyTCPSocketback to summary
public RubyTCPSocket(Ruby runtime, RubyClass type)

Method Detail

attemptConnectback to summary
private SocketChannel attemptConnect(ThreadContext context, IRubyObject host, String localHost, int localPort, String remoteHost, int remotePort, RubyHash opts) throws IOException
createTCPSocketback to summary
pack-priv static RubyClass createTCPSocket(ThreadContext context, RubyClass IPSocket)
gethostbynameback to summary
public static IRubyObject gethostbyname(ThreadContext context, IRubyObject recv, IRubyObject hostname)
Annotations
@JRubyMethod
meta:true
gethostbynameback to summary
public static IRubyObject gethostbyname(IRubyObject recv, IRubyObject hostname)

Deprecated

Annotations
@Deprecated
initializeback to summary
public IRubyObject initialize(ThreadContext context, IRubyObject host, IRubyObject port)
Annotations
@JRubyMethod
visibility:PRIVATE
initializeback to summary
public IRubyObject initialize(ThreadContext context, IRubyObject host, IRubyObject port, IRubyObject localOrOpts)
Annotations
@JRubyMethod
visibility:PRIVATE
initializeback to summary
public IRubyObject initialize(ThreadContext context, IRubyObject[] args)
Annotations
@JRubyMethod
required:2
optional:3
checkArity:false
visibility:PRIVATE
initializeback to summary
public IRubyObject initialize(ThreadContext context, String remoteHost, int remotePort, IRubyObject host, String localHost, int localPort, RubyHash opts)
openback to summary
public static IRubyObject open(IRubyObject recv, IRubyObject[] args, Block block)

Deprecated

Annotations
@Deprecated