Top Constructors Methods
org.jruby.ext.socket

public Class RubyTCPServer

extends RubyTCPSocket
Class Inheritance
Annotations
@JRubyClass
name:TCPServer
parent:TCPSocket
Imports
org.jruby.Ruby, .RubyBasicObject, .RubyClass, .RubyFixnum, .RubyString, .RubyThread, org.jruby.anno.JRubyClass, .JRubyMethod, org.jruby.api.Access, org.jruby.runtime.Block, .ThreadContext, .Visibility, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.io.FilenoUtil, .SelectorFactory, java.io.IOException, java.net.BindException, .InetAddress, .InetSocketAddress, .SocketException, .UnknownHostException, java.nio.channels.SelectionKey, .Selector, .ServerSocketChannel, .SocketChannel, java.nio.channels.spi.SelectorProvider

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public IRubyObject
public IRubyObject
accept()
Deprecated

public IRubyObject
public IRubyObject
public IRubyObject
accept_nonblock(ThreadContext context, Ruby runtime, boolean ex)

pack-priv static void
public IRubyObject
public IRubyObject
gets(ThreadContext context)

Overrides org.jruby.RubyIO.gets.

Read a line.

public IRubyObject
public IRubyObject
public ServerSocketChannel
public IRubyObject
public IRubyObject
listen(ThreadContext context, IRubyObject backlog)

public IRubyObject
listen(IRubyObject backlog)
Deprecated

public static IRubyObject
public static IRubyObject
public IRubyObject
public IRubyObject
public IRubyObject
Inherited from org.jruby.ext.socket.RubyTCPSocket:
createTCPSocketgethostbynamegethostbynameinitializeinitializeinitialize

Constructor Detail

RubyTCPServerback to summary
public RubyTCPServer(Ruby runtime, RubyClass type)

Method Detail

acceptback to summary
public IRubyObject accept(ThreadContext context)
Annotations
@JRubyMethod
name:accept
acceptback to summary
public IRubyObject accept()

Deprecated

Annotations
@Deprecated
accept_nonblockback to summary
public IRubyObject accept_nonblock(ThreadContext context)
Annotations
@JRubyMethod
name:accept_nonblock
accept_nonblockback to summary
public IRubyObject accept_nonblock(ThreadContext context, IRubyObject opts)
Annotations
@JRubyMethod
name:accept_nonblock
accept_nonblockback to summary
public IRubyObject accept_nonblock(ThreadContext context, Ruby runtime, boolean ex)
createTCPServerback to summary
pack-priv static void createTCPServer(ThreadContext context, RubyClass TCPSocket)
getpeernameback to summary
public IRubyObject getpeername(ThreadContext context, IRubyObject[] args)
Annotations
@JRubyMethod
name:getpeername
rest:true
getsback to summary
public IRubyObject gets(ThreadContext context)

Overrides org.jruby.RubyIO.gets.

Doc from org.jruby.RubyIO.gets.

Read a line.

Annotations
@Override
getsback to summary
public IRubyObject gets(ThreadContext context, IRubyObject sep)

Overrides org.jruby.RubyIO.gets.

Annotations
@Override
getsback to summary
public IRubyObject gets(ThreadContext context, IRubyObject sep, IRubyObject limit)

Overrides org.jruby.RubyIO.gets.

Annotations
@Override
getServerSocketChannelback to summary
public ServerSocketChannel getServerSocketChannel()
initializeback to summary
public IRubyObject initialize(ThreadContext context, IRubyObject[] args)

Overrides org.jruby.ext.socket.RubyTCPSocket.initialize.

Annotations
@JRubyMethod
name:initialize
required:1
optional:1
checkArity:false
visibility:PRIVATE
listenback to summary
public IRubyObject listen(ThreadContext context, IRubyObject backlog)
Annotations
@JRubyMethod
name:listen
listenback to summary
public IRubyObject listen(IRubyObject backlog)

Deprecated

Annotations
@Deprecated
openback to summary
public static IRubyObject open(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)

Hides org.jruby.RubyIO.open.

Annotations
@JRubyMethod
rest:true
meta:true
openback to summary
public static IRubyObject open(IRubyObject recv, IRubyObject[] args, Block block)

Hides org.jruby.ext.socket.RubyTCPSocket.open.

Deprecated

Annotations
@Deprecated
peeraddrback to summary
public IRubyObject peeraddr(ThreadContext context, IRubyObject[] args)
Annotations
@JRubyMethod
name:peeraddr
rest:true
shutdownback to summary
public IRubyObject shutdown(ThreadContext context, IRubyObject[] args)

Overrides org.jruby.ext.socket.RubyBasicSocket.shutdown.

Annotations
@Override
sysacceptback to summary
public IRubyObject sysaccept(ThreadContext context)
Annotations
@JRubyMethod
name:sysaccept