Logo Search packages:      
Sourcecode: jruby1.0 version File versions

org::jruby::ext::socket::RubySocket Class Reference

Inheritance diagram for org::jruby::ext::socket::RubySocket:

org::jruby::ext::socket::RubyBasicSocket org::jruby::RubyIO org::jruby::RubyObject org::jruby::runtime::builtin::IRubyObject

List of all members.


Detailed Description

Author:
Ola Bini

Definition at line 52 of file RubySocket.java.


Public Member Functions

void addFinalizer (RubyProc finalizer)
IRubyObject addString (IRubyObject anObject)
IRubyObject anyToString ()
RubyString asString ()
String asSymbol ()
void attachToObjectSpace ()
IRubyObject binmode ()
void callInit (IRubyObject[] args, Block block)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject arg)
IRubyObject callMethod (ThreadContext context, String name, Block block)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name)
IRubyObject callMethod (ThreadContext context, String name)
IRubyObject callMethod (ThreadContext context, RubyModule rubyclass, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject callMethod (ThreadContext context, RubyModule rubyclass, int methodIndex, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject callMethod (ThreadContext context, RubyModule rubyclass, int methodIndex, String name, IRubyObject[] args, CallType callType)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject[] args, CallType callType)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject[] args)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject arg)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, CallType callType)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, Block block)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args)
IRubyObject callSuper (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject checkArrayType ()
IRubyObject checkStringType ()
IRubyObject close ()
RubyBoolean closed ()
IRubyObject compilerCallMethod (ThreadContext context, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
IRubyObject compilerCallMethodWithIndex (ThreadContext context, int methodIndex, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
RubyArray convertToArray ()
RubyFloat convertToFloat ()
RubyHash convertToHash ()
RubyInteger convertToInteger ()
RubyString convertToString ()
IRubyObject convertToType (RubyClass targetType, int convertMethodIndex, String convertMethod, boolean raiseOnMissingMethod, boolean raiseOnWrongTypeResult, boolean allowNilThrough)
IRubyObject convertToType (RubyClass targetType, int convertMethodIndex, boolean raise)
IRubyObject convertToType (RubyClass targetType, int convertMethodIndex, String convertMethod, boolean raise)
IRubyObject convertToTypeWithCheck (RubyClass targetType, int convertMethodIndex, String convertMethod)
synchronized Object dataGetStruct ()
synchronized void dataWrapStruct (Object obj)
IRubyObject display (IRubyObject[] args)
IRubyObject dup ()
IRubyObject each_byte (Block block)
RubyIO each_line (IRubyObject[] args, Block block)
RubyBoolean eof ()
boolean eql (IRubyObject other)
final boolean eqlInternal (final ThreadContext context, final IRubyObject other)
IRubyObject equal (IRubyObject other)
final IRubyObject equalInternal (final ThreadContext context, final IRubyObject other)
boolean equals (Object other)
IRubyObject evalSimple (ThreadContext context, IRubyObject src, String file)
IRubyObject evalUnder (RubyModule under, IRubyObject src, IRubyObject file, IRubyObject line)
IRubyObject evalWithBinding (ThreadContext context, IRubyObject src, IRubyObject scope, String file)
IRubyObject extend (IRubyObject[] args)
IRubyObject fcntl (IRubyObject cmd, IRubyObject arg) throws IOException
RubyFixnum fileno ()
RubyIO flush ()
IRubyObject freeze ()
RubyBoolean frozen ()
RubyFixnum fsync ()
boolean getBlocking ()
IRubyObject getc ()
Channel getChannel ()
IRubyObject getInstanceVariable (String name)
Map getInstanceVariables ()
Map getInstanceVariablesSnapshot ()
InputStream getInStream ()
IOHandler getIOHandlerByFileno (int aFileno)
Class getJavaClass ()
final RubyClass getMetaClass ()
int getNativeTypeIndex ()
OutputStream getOutStream ()
IRubyObject getpeername ()
Ruby getRuntime ()
IRubyObject gets (IRubyObject[] args)
RubyClass getSingletonClass ()
RubyClass getSingletonClassClone ()
IRubyObject getsockname ()
RubyClass getType ()
RubyFixnum hash ()
int hashCode ()
boolean hasPendingBuffered ()
synchronized RubyFixnum id ()
synchronized RubyFixnum id_deprecated ()
IRubyObject infectBy (IRubyObject obj)
IRubyObject inherited (IRubyObject arg, Block block)
IRubyObject initialize (IRubyObject[] args, Block unusedBlock)
IRubyObject initialize_copy (IRubyObject original)
IRubyObject inspect ()
IRubyObject instance_eval (IRubyObject[] args, Block block)
IRubyObject instance_exec (IRubyObject[] args, Block block)
RubyBoolean instance_of (IRubyObject type)
IRubyObject instance_variable_get (IRubyObject var)
IRubyObject instance_variable_set (IRubyObject var, IRubyObject value)
RubyArray instance_variables ()
Iterator instanceVariableNames ()
IRubyObject internalGets (IRubyObject[] args)
final boolean isFalse ()
boolean isFrozen ()
boolean isImmediate ()
boolean isKindOf (RubyModule type)
boolean isNil ()
boolean isOpen ()
boolean isSingleton ()
boolean isTaint ()
final boolean isTrue ()
RubyBoolean kind_of (IRubyObject type)
RubyFixnum lineno ()
RubyFixnum lineno_set (IRubyObject newLineNumber)
RubyClass makeMetaClass (RubyClass superClass, SinglyLinkedList parentCRef)
IRubyObject match (IRubyObject arg)
IRubyObject method (IRubyObject symbol)
IRubyObject method_missing (IRubyObject[] args, Block block)
IRubyObject methods (IRubyObject[] args)
IRubyObject nil_p ()
IRubyObject obj_equal (IRubyObject obj)
IRubyObject pid ()
RubyFixnum pos ()
RubyFixnum pos_set (IRubyObject newPosition)
IRubyObject print (IRubyObject[] args)
IRubyObject printf (IRubyObject[] args)
IRubyObject private_methods ()
IRubyObject protected_methods ()
IRubyObject public_methods (IRubyObject[] args)
IRubyObject putc (IRubyObject object)
IRubyObject puts (IRubyObject[] args)
IRubyObject rbClone (Block unusedBlock)
IRubyObject read (IRubyObject[] args)
IRubyObject readchar ()
IRubyObject readline (IRubyObject[] args)
RubyArray readlines (IRubyObject[] args)
IRubyObject readpartial (IRubyObject[] args)
IRubyObject recv (IRubyObject[] args)
void registerIOHandler (IOHandler newHandler)
IRubyObject remove_instance_variable (IRubyObject name, Block block)
void removeFinalizers ()
IRubyObject removeInstanceVariable (String name)
IRubyObject reopen (IRubyObject[] args)
RubyBoolean respond_to (IRubyObject[] args)
boolean respondsTo (String name)
RubyFixnum rewind ()
 RubySocket (Ruby runtime, RubyClass type)
Map safeGetInstanceVariables ()
boolean safeHasInstanceVariables ()
RubyFixnum seek (IRubyObject[] args)
IRubyObject send (IRubyObject[] args, Block block)
void setFrozen (boolean frozen)
IRubyObject setInstanceVariable (String name, IRubyObject value)
IRubyObject setInstanceVariable (String name, IRubyObject value, String taintError, String freezeError)
void setInstanceVariables (Map instanceVariables)
void setMetaClass (RubyClass metaClass)
void setTaint (boolean taint)
IRubyObject shutdown (IRubyObject[] args)
RubyArray singleton_methods (IRubyObject[] args)
IRubyObject specificEval (RubyModule mod, IRubyObject[] args, Block block)
RubyBoolean sync ()
IRubyObject sync_set (IRubyObject newSync)
IRubyObject sysread (IRubyObject number)
IRubyObject syswrite (IRubyObject obj)
IRubyObject taint ()
RubyBoolean tainted ()
RubyIO to_io ()
IRubyObject to_s ()
String toString ()
RubyBoolean tty ()
RubyClass type ()
RubyClass type_deprecated ()
IRubyObject ungetc (IRubyObject number)
void unregisterIOHandler (int aFileno)
IRubyObject untaint ()
IRubyObject write (IRubyObject obj)
IRubyObject write_send (IRubyObject[] args)

Static Public Member Functions

static IRubyObject callMethodMissingIfNecessary (ThreadContext context, IRubyObject receiver, DynamicMethod method, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
static RubyClass createIOClass (Ruby runtime)
static RubyClass createObjectClass (Ruby runtime, RubyClass objectClass)
static IRubyObject do_not_reverse_lookup (IRubyObject recv)
static IRubyObject fdOpen (Ruby runtime, int descriptor)
static IRubyObject foreach (IRubyObject recv, IRubyObject[] args, Block block)
static IRubyObject getaddrinfo (IRubyObject recv, IRubyObject[] args)
static IRubyObject gethostbyaddr (IRubyObject recv, IRubyObject[] args)
static IRubyObject gethostbyname (IRubyObject recv, IRubyObject hostname)
static IRubyObject gethostname (IRubyObject recv)
static IRubyObject getnameinfo (IRubyObject recv, IRubyObject[] args)
static int getNewFileno ()
static void initCopy (IRubyObject clone, IRubyObject original)
static IRubyObject pipe (IRubyObject recv) throws Exception
static IRubyObject popen (IRubyObject recv, IRubyObject[] args, Block block)
static void puts (Object obj)
static IRubyObject read (IRubyObject recv, IRubyObject[] args, Block block)
static RubyArray readlines (IRubyObject recv, IRubyObject[] args, Block block)
static IRubyObject select (IRubyObject recv, IRubyObject[] args)
static IRubyObject select_static (Ruby runtime, IRubyObject[] args)
static IRubyObject set_do_not_reverse_lookup (IRubyObject recv, IRubyObject flag)
static String trueFalseNil (String v)
static String trueFalseNil (IRubyObject v)

Static Public Attributes

static final IRubyObject NEVER = new RubyObject()
static final IRubyObject[] NULL_ARRAY = new IRubyObject[0]
static ObjectAllocator OBJECT_ALLOCATOR
static final int STDERR = 2
static final int STDIN = 0
static final int STDOUT = 1

Protected Member Functions

void checkFrozen ()
void checkReadable ()
void checkWriteable ()
IRubyObject doClone ()
InetSocketAddress getLocalSocket ()
InetSocketAddress getRemoteSocket ()
void setChannel (Channel c)
void testFrozen (String message)

Protected Attributes

IOHandler handler
Map instanceVariables
boolean isOpen = true
boolean isTrue = true
int lineNumber = 0
RubyClass metaClass
IOModes modes = null
Channel socketChannel

Static Protected Attributes

static int fileno = 2

Static Package Functions

static void createBasicSocket (Ruby runtime)
static void createSocket (Ruby runtime)

Static Private Member Functions

static InetAddress intoAddress (IRubyObject recv, String s)
static String intoString (IRubyObject recv, InetAddress as)
static RuntimeException sockerr (IRubyObject recv, String msg)

Static Private Attributes

static ObjectAllocator SOCKET_ALLOCATOR

Classes

class  Service

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index