org.jruby.ext.socket
Class RubyUNIXSocket
java.lang.Object
org.jruby.RubyBasicObject
org.jruby.RubyObject
org.jruby.RubyIO
org.jruby.ext.socket.RubyBasicSocket
org.jruby.ext.socket.RubyUNIXSocket
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<IRubyObject>, InstanceVariables, InternalVariables, IRubyObject, CoreObjectType
- Direct Known Subclasses:
- RubyUNIXServer
public class RubyUNIXSocket
- extends RubyBasicSocket
- 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 |
IRubyObject |
addr()
Deprecated. |
IRubyObject |
addr(ThreadContext context)
|
IRubyObject |
close()
Closes all open resources for the IO. |
protected void |
init_sock(Ruby runtime)
|
protected void |
init_unixsock(Ruby runtime,
IRubyObject _path,
boolean server)
|
IRubyObject |
initialize(ThreadContext context,
IRubyObject path)
|
static IRubyObject |
open(IRubyObject recv,
IRubyObject path)
Deprecated. |
static IRubyObject |
open(ThreadContext context,
IRubyObject recv,
IRubyObject path)
|
IRubyObject |
path()
Deprecated. |
IRubyObject |
path(ThreadContext context)
|
IRubyObject |
peeraddr()
Deprecated. |
IRubyObject |
peeraddr(ThreadContext context)
|
protected static void |
rb_sys_fail(Ruby runtime,
java.lang.String message)
|
IRubyObject |
recv_io(IRubyObject[] args)
|
IRubyObject |
recvfrom(IRubyObject[] args)
Deprecated. |
IRubyObject |
recvfrom(ThreadContext context,
IRubyObject[] args)
|
IRubyObject |
send_io(IRubyObject path)
|
IRubyObject |
setsockopt(ThreadContext context,
IRubyObject lev,
IRubyObject optname,
IRubyObject val)
|
static IRubyObject |
socketpair(IRubyObject recv,
IRubyObject[] args)
Deprecated. |
static IRubyObject |
socketpair(ThreadContext context,
IRubyObject recv,
IRubyObject[] args)
|
static boolean |
tryUnixDomainSocket()
|
Methods inherited from class org.jruby.ext.socket.RubyBasicSocket |
asBoolean, close_read, close_write, do_not_reverse_lookup, getLocalSocket, getpeername, getpeername, getRemoteSocket, getsockname, getsockname, getsockopt, getsockopt, getSoTypeDefault, initSocket, recv, recv, set_do_not_reverse_lookup, setsockopt, shutdown, write_send |
Methods inherited from class org.jruby.RubyIO |
addBlockingThread, binmode, checkClosed, checkInitialized, 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 |
INSTANCE
protected static RubyUNIXSocket.LibCSocket INSTANCE
fd
protected int fd
fpath
protected java.lang.String fpath
F_GETFL
protected static final int F_GETFL
F_SETFL
protected static final int F_SETFL
O_NONBLOCK
protected static final int O_NONBLOCK
RubyUNIXSocket
public RubyUNIXSocket(Ruby runtime,
RubyClass type)
tryUnixDomainSocket
public static boolean tryUnixDomainSocket()
rb_sys_fail
protected static void rb_sys_fail(Ruby runtime,
java.lang.String message)
init_unixsock
protected void init_unixsock(Ruby runtime,
IRubyObject _path,
boolean server)
setsockopt
public IRubyObject setsockopt(ThreadContext context,
IRubyObject lev,
IRubyObject optname,
IRubyObject val)
- Overrides:
setsockopt
in class RubyBasicSocket
init_sock
protected void init_sock(Ruby runtime)
initialize
public IRubyObject initialize(ThreadContext context,
IRubyObject path)
path
@Deprecated
public IRubyObject path()
- Deprecated.
path
public IRubyObject path(ThreadContext context)
addr
@Deprecated
public IRubyObject addr()
- Deprecated.
addr
public IRubyObject addr(ThreadContext context)
peeraddr
@Deprecated
public IRubyObject peeraddr()
- Deprecated.
peeraddr
public IRubyObject peeraddr(ThreadContext context)
recvfrom
@Deprecated
public IRubyObject recvfrom(IRubyObject[] args)
- Deprecated.
recvfrom
public IRubyObject recvfrom(ThreadContext context,
IRubyObject[] args)
send_io
public IRubyObject send_io(IRubyObject path)
recv_io
public IRubyObject recv_io(IRubyObject[] args)
close
public IRubyObject close()
- Description copied from class:
RubyIO
Closes all open resources for the IO. It also removes
it from our magical all open file descriptor pool.
- Overrides:
close
in class RubyIO
- Returns:
- The IO.
open
@Deprecated
public static IRubyObject open(IRubyObject recv,
IRubyObject path)
- Deprecated.
open
public static IRubyObject open(ThreadContext context,
IRubyObject recv,
IRubyObject path)
socketpair
@Deprecated
public static IRubyObject socketpair(IRubyObject recv,
IRubyObject[] args)
- Deprecated.
socketpair
public static IRubyObject socketpair(ThreadContext context,
IRubyObject recv,
IRubyObject[] args)
Copyright © 2002-2007 JRuby Team. All Rights Reserved.