org.jruby.ext.socket
Class RubyBasicSocket

java.lang.Object
  extended by org.jruby.RubyObject
      extended by org.jruby.RubyIO
          extended by org.jruby.ext.socket.RubyBasicSocket
All Implemented Interfaces:
java.lang.Cloneable, IRubyObject
Direct Known Subclasses:
RubyIPSocket, RubySocket

public class RubyBasicSocket
extends RubyIO

Author:
Ola Bini

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jruby.RubyObject
RubyObject.Finalizer
 
Field Summary
protected  java.nio.channels.Channel 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
RubyBasicSocket(Ruby runtime, RubyClass type)
           
 
Method Summary
static IRubyObject do_not_reverse_lookup(IRubyObject recv)
           
protected  java.net.InetSocketAddress getLocalSocket()
           
 IRubyObject getpeername()
           
protected  java.net.InetSocketAddress getRemoteSocket()
           
 IRubyObject getsockname()
           
 IRubyObject recv(IRubyObject[] args)
           
static IRubyObject set_do_not_reverse_lookup(IRubyObject recv, IRubyObject flag)
           
protected  void setChannel(java.nio.channels.Channel c)
           
 IRubyObject shutdown(IRubyObject[] args)
           
 IRubyObject write_send(IRubyObject[] args)
           
 
Methods inherited from class org.jruby.RubyIO
addString, binmode, checkReadable, checkWriteable, close, 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 org.jruby.RubyObject
addFinalizer, anyToString, asString, asSymbol, attachToObjectSpace, callInit, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodMissing, callMethodMissing, callSuper, checkArrayType, checkFrozen, checkStringType, compilerCallMethod, compilerCallMethodWithIndex, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToString, convertToType, convertToType, convertToType, convertToTypeWithCheck, createObjectClass, dataGetStruct, dataWrapStruct, display, doClone, dup, eql, eqlInternal, equal, equalInternal, equals, evalSimple, evalUnder, evalWithBinding, extend, freeze, frozen, getInstanceVariable, getInstanceVariables, getInstanceVariablesSnapshot, getJavaClass, getMetaClass, getNativeTypeIndex, getRuntime, getSingletonClass, getSingletonClassClone, getType, hash, hashCode, id_deprecated, id, infectBy, inherited, initCopy, inspect, instance_eval, instance_exec, instance_of, instance_variable_get, instance_variable_set, instance_variables, instanceVariableNames, isFalse, isFrozen, isImmediate, isKindOf, isNil, isSingleton, isTaint, isTrue, kind_of, makeMetaClass, match, method, methods, nil_p, obj_equal, private_methods, protected_methods, public_methods, puts, rbClone, remove_instance_variable, removeFinalizers, removeInstanceVariable, respond_to, respondsTo, safeGetInstanceVariables, safeHasInstanceVariables, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, singleton_methods, specificEval, taint, tainted, testFrozen, to_s, trueFalseNil, trueFalseNil, type_deprecated, type, untaint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

socketChannel

protected java.nio.channels.Channel socketChannel
Constructor Detail

RubyBasicSocket

public RubyBasicSocket(Ruby runtime,
                       RubyClass type)
Method Detail

setChannel

protected void setChannel(java.nio.channels.Channel c)

write_send

public IRubyObject write_send(IRubyObject[] args)

recv

public IRubyObject recv(IRubyObject[] args)

getLocalSocket

protected java.net.InetSocketAddress getLocalSocket()

getRemoteSocket

protected java.net.InetSocketAddress getRemoteSocket()

getsockname

public IRubyObject getsockname()

getpeername

public IRubyObject getpeername()

shutdown

public IRubyObject shutdown(IRubyObject[] args)

do_not_reverse_lookup

public static IRubyObject do_not_reverse_lookup(IRubyObject recv)

set_do_not_reverse_lookup

public static IRubyObject set_do_not_reverse_lookup(IRubyObject recv,
                                                    IRubyObject flag)


Copyright © 2002-2007 JRuby Team. All Rights Reserved.