org.jruby.ext.socket
Class RubyBasicSocket
java.lang.Object
org.jruby.RubyBasicObject
org.jruby.RubyObject
org.jruby.RubyIO
org.jruby.ext.socket.RubyBasicSocket
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<IRubyObject>, InstanceVariables, InternalVariables, IRubyObject, CoreObjectType
- Direct Known Subclasses:
- RubyIPSocket, RubySocket, RubyUNIXSocket
public class RubyBasicSocket
- extends RubyIO
- Author:
- Ola Bini
- See Also:
- Serialized Form
Fields inherited from class org.jruby.RubyBasicObject |
ALL_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, metaClass, NEVER, NIL_F, TAINTED_F, UNDEF, UNTRUSTED_F, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F |
Method Summary |
protected boolean |
asBoolean(IRubyObject val)
|
IRubyObject |
close_read(ThreadContext context)
|
IRubyObject |
close_write(ThreadContext context)
|
static IRubyObject |
do_not_reverse_lookup(IRubyObject recv)
|
protected java.net.InetSocketAddress |
getLocalSocket()
|
IRubyObject |
getpeername()
Deprecated. |
IRubyObject |
getpeername(ThreadContext context)
|
protected java.net.InetSocketAddress |
getRemoteSocket()
|
IRubyObject |
getsockname()
Deprecated. |
IRubyObject |
getsockname(ThreadContext context)
|
IRubyObject |
getsockopt(IRubyObject lev,
IRubyObject optname)
Deprecated. |
IRubyObject |
getsockopt(ThreadContext context,
IRubyObject lev,
IRubyObject optname)
|
protected int |
getSoTypeDefault()
|
protected void |
initSocket(Ruby runtime,
ChannelDescriptor descriptor)
|
IRubyObject |
recv(IRubyObject[] args)
Deprecated. |
IRubyObject |
recv(ThreadContext context,
IRubyObject[] args)
|
static IRubyObject |
set_do_not_reverse_lookup(IRubyObject recv,
IRubyObject flag)
|
IRubyObject |
setsockopt(IRubyObject lev,
IRubyObject optname,
IRubyObject val)
Deprecated. |
IRubyObject |
setsockopt(ThreadContext context,
IRubyObject lev,
IRubyObject optname,
IRubyObject val)
|
IRubyObject |
shutdown(ThreadContext context,
IRubyObject[] args)
|
IRubyObject |
write_send(ThreadContext context,
IRubyObject[] args)
|
Methods inherited from class org.jruby.RubyIO |
addBlockingThread, binmode, checkClosed, checkInitialized, close, close2, closed_p, copy_stream, createIOClass, ctl, each_byte, each_byte19, each_line, each_line19, each19, eof_p, external_encoding, fcntl, fcntl, fdopen, fileno, flush, foreach, foreach19, fsync, fwrite, getBlocking, getc, getChannel, getDescriptorByFileno, getHandler, getInStream, getIOModes, getIOModesIntFromString, getline, getlineFast, getNativeTypeIndex, getNewFileno, getOpenFile, getOpenFileChecked, getOutStream, gets, initialize_copy, initialize, initialize19, initialize19, initialize19, interruptBlockingThreads, ioctl, isClosed, lineno_set, lineno, newInstance, newIO, op_append, open, pid, pipe, popen, popen3, pos_set, pos, print, print, printf, putc, putc, puts, puts, read_nonblock, read, read, read, read, read, read, read, read, readAll, readchar, readline, readlines, readlines, readpartial, registerDescriptor, registerDescriptor, removeBlockingThread, reopen, restartSystemCall, rewind, seek, seek, seek, select_static, select, set_encoding, set_encoding, set_encoding, stat, swallow, sync_set, sync, sysopen, sysread, sysseek, syswrite, to_io, toString, tty_p, ungetc, unregisterDescriptor, waitReadable, waitWritable, write_nonblock, write, write, write, writeDataBuffered |
Methods inherited from class org.jruby.RubyObject |
as, attachToObjectSpace, callInit, checkFrozen, convertToType, createObjectClass, display, dup, eql_p, eqlInternal, equal_p, equalInternal, equals, evalUnder, evalUnder, extend, freeze, frozen_p, hash, hashCode, id_deprecated, id, initialize, inspect, instance_eval, instance_eval, instance_eval, instance_eval, instance_eval, instance_exec, instance_of_p, instance_variable_defined_p, instance_variable_get, instance_variable_set, instance_variables, kind_of_p, method, methods, nil_p, op_eqq, op_equal, op_match, private_methods, protected_methods, public_methods, puts, rbClone, remove_instance_variable, respond_to_p, respond_to_p, send, send, send, send, send, singleton_methods, singleton_methods19, singletonMethods, specificEval, specificEval, specificEval, specificEval, specificEval, taint, tainted_p, to_a, to_java, to_s, trust, type_deprecated, type, untaint, untrust, untrusted_p, validateInstanceVariable |
Methods inherited from class org.jruby.RubyBasicObject |
addFinalizer, anyToString, asJavaString, asString, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callSuper, checkArrayType, checkStringType, compareTo, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToInteger, convertToInteger, convertToString, copyInstanceVariablesInto, copySpecialInstanceVariables, createBasicObjectClass, dataGetStruct, dataWrapStruct, ensureInstanceVariablesSettable, eql, fastGetInstanceVariable, fastGetInternalVariable, fastHasInstanceVariable, fastHasInternalVariable, fastSetInstanceVariable, fastSetInternalVariable, getFlag, getInstanceVariable, getInstanceVariableList, getInstanceVariableNameList, getInstanceVariables, getInternalVariable, getInternalVariables, getJavaClass, getMetaClass, getRuntime, getSingletonClass, getSingletonClassClone, getType, getVariable, getVariableCount, getVariableList, getVariableNameList, hasInstanceVariable, hasInternalVariable, hasVariables, infectBy, isClass, isFalse, isFrozen, isImmediate, isModule, isNil, isTaint, isTrue, isUntrusted, makeMetaClass, op_not_equal, op_not, removeFinalizers, removeInstanceVariable, removeInternalVariable, respondsTo, setFlag, setFrozen, setInstanceVariable, setInternalVariable, setMetaClass, setTaint, setUntrusted, setVariable, syncVariables, taint, testFrozen, testFrozen, variableTableContains, variableTableFastContains, variableTableFastFetch, variableTableFastStore, variableTableFetch, variableTableGetSize, variableTableRemove, variableTableStore, variableTableSync |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
RubyBasicSocket
public RubyBasicSocket(Ruby runtime,
RubyClass type)
initSocket
protected void initSocket(Ruby runtime,
ChannelDescriptor descriptor)
close_write
public IRubyObject close_write(ThreadContext context)
- Overrides:
close_write
in class RubyIO
close_read
public IRubyObject close_read(ThreadContext context)
- Overrides:
close_read
in class RubyIO
write_send
public IRubyObject write_send(ThreadContext context,
IRubyObject[] args)
recv
@Deprecated
public IRubyObject recv(IRubyObject[] args)
- Deprecated.
recv
public IRubyObject recv(ThreadContext context,
IRubyObject[] args)
getLocalSocket
protected java.net.InetSocketAddress getLocalSocket()
getRemoteSocket
protected java.net.InetSocketAddress getRemoteSocket()
asBoolean
protected boolean asBoolean(IRubyObject val)
getSoTypeDefault
protected int getSoTypeDefault()
getsockopt
@Deprecated
public IRubyObject getsockopt(IRubyObject lev,
IRubyObject optname)
- Deprecated.
getsockopt
public IRubyObject getsockopt(ThreadContext context,
IRubyObject lev,
IRubyObject optname)
setsockopt
@Deprecated
public IRubyObject setsockopt(IRubyObject lev,
IRubyObject optname,
IRubyObject val)
- Deprecated.
setsockopt
public IRubyObject setsockopt(ThreadContext context,
IRubyObject lev,
IRubyObject optname,
IRubyObject val)
getsockname
@Deprecated
public IRubyObject getsockname()
- Deprecated.
getsockname
public IRubyObject getsockname(ThreadContext context)
getpeername
@Deprecated
public IRubyObject getpeername()
- Deprecated.
getpeername
public IRubyObject getpeername(ThreadContext context)
shutdown
public IRubyObject shutdown(ThreadContext context,
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.