|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jruby.RubyObject
org.jruby.RubyIO
org.jruby.ext.socket.RubyBasicSocket
org.jruby.ext.socket.RubyIPSocket
org.jruby.ext.socket.RubyTCPSocket
org.jruby.ext.socket.RubyTCPServer
public class RubyTCPServer
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jruby.RubyObject |
|---|
RubyObject.Finalizer |
| Field Summary |
|---|
| Fields inherited from class org.jruby.ext.socket.RubyBasicSocket |
|---|
socketChannel |
| Fields inherited from class org.jruby.RubyIO |
|---|
fileno, handler, isOpen, lineNumber, modes, STDERR, STDIN, STDOUT |
| Fields inherited from class org.jruby.RubyObject |
|---|
instanceVariables, isTrue, metaClass, NEVER, OBJECT_ALLOCATOR |
| Fields inherited from interface org.jruby.runtime.builtin.IRubyObject |
|---|
NULL_ARRAY |
| Constructor Summary | |
|---|---|
RubyTCPServer(Ruby runtime,
RubyClass type)
|
|
| Method Summary | |
|---|---|
IRubyObject |
accept()
|
IRubyObject |
close()
Closes all open resources for the IO. |
IRubyObject |
getpeername(IRubyObject[] args)
|
IRubyObject |
initialize(IRubyObject hostname,
IRubyObject port)
|
IRubyObject |
listen(IRubyObject backlog)
|
static IRubyObject |
open(IRubyObject recv,
IRubyObject[] args,
Block block)
|
IRubyObject |
peeraddr(IRubyObject[] args)
|
| Methods inherited from class org.jruby.ext.socket.RubyTCPSocket |
|---|
gethostbyname, setsockopt |
| Methods inherited from class org.jruby.ext.socket.RubyIPSocket |
|---|
addr, getaddress, peeraddr, sockerr |
| Methods inherited from class org.jruby.ext.socket.RubyBasicSocket |
|---|
do_not_reverse_lookup, getLocalSocket, getpeername, getRemoteSocket, getsockname, recv, set_do_not_reverse_lookup, setChannel, shutdown, write_send |
| Methods inherited from class org.jruby.RubyIO |
|---|
addString, binmode, checkReadable, checkWriteable, closed, closeWrite, createIOClass, each_byte, each_line, eof, fcntl, fdOpen, fileno, flush, foreach, fsync, getBlocking, getc, getChannel, getInStream, getIOHandlerByFileno, getNewFileno, getOutStream, gets, hasPendingBuffered, initialize_copy, initialize, internalGets, io_wait, isOpen, lineno_set, lineno, pid, pipe, popen, pos_set, pos, print, printf, putc, puts, read, read, readchar, readline, readlines, readlines, readpartial, ready, registerIOHandler, reopen, rewind, seek, select_static, select, sync_set, sync, sysread, syswrite, to_io, toString, tty, ungetc, unregisterIOHandler, write |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RubyTCPServer(Ruby runtime,
RubyClass type)
| Method Detail |
|---|
public IRubyObject initialize(IRubyObject hostname,
IRubyObject port)
initialize in class RubyTCPSocketpublic IRubyObject accept()
public IRubyObject close()
RubyIOCloses all open resources for the IO. It also removes it from our magical all open file descriptor pool.
close in class RubyIOpublic IRubyObject listen(IRubyObject backlog)
public IRubyObject peeraddr(IRubyObject[] args)
public IRubyObject getpeername(IRubyObject[] args)
public static IRubyObject open(IRubyObject recv,
IRubyObject[] args,
Block block)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||