org.jruby.ext.socket
Class RubyIPSocket

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

public class RubyIPSocket
extends RubyBasicSocket

Author:
Ola Bini

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
RubyIPSocket(Ruby runtime, RubyClass type)
           
 
Method Summary
 IRubyObject addr()
           
static IRubyObject getaddress(IRubyObject recv, IRubyObject hostname)
           
 IRubyObject peeraddr()
           
protected static java.lang.RuntimeException sockerr(IRubyObject recv, java.lang.String msg)
           
 
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, 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
 

Constructor Detail

RubyIPSocket

public RubyIPSocket(Ruby runtime,
                    RubyClass type)
Method Detail

sockerr

protected static java.lang.RuntimeException sockerr(IRubyObject recv,
                                                    java.lang.String msg)

addr

public IRubyObject addr()

peeraddr

public IRubyObject peeraddr()

getaddress

public static IRubyObject getaddress(IRubyObject recv,
                                     IRubyObject hostname)


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