Top Fields Constructors Methods
org.jruby.ext.socket

public Class RubyUNIXSocket

extends RubyBasicSocket
Class Inheritance
Known Direct Subclasses
org.jruby.ext.socket.RubyUNIXServer
Annotations
@JRubyClass
name:UNIXSocket
parent:BasicSocket
Imports
jnr.constants.platform.Fcntl, .OpenFlags, .SocketLevel, .SocketOption, jnr.ffi.LastError, jnr.posix.CmsgHdr, .MsgHdr, .POSIX, jnr.unixsocket.UnixServerSocket, .UnixServerSocketChannel, .UnixSocketAddress, .UnixSocketChannel, org.jruby.Ruby, .RubyClass, .RubyFixnum, .RubyIO, .RubyNumeric, .RubyString, org.jruby.anno.JRubyClass, .JRubyMethod, org.jruby.api.Access, .Define, org.jruby.runtime.Arity, .Helpers, .ThreadContext, .Visibility, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.ByteList, org.jruby.util.io.FilenoUtil, .ModeFlags, .OpenFile, java.io.Closeable, .File, .IOException, java.nio.ByteBuffer, .ByteOrder, java.nio.channels.Channel

Field Summary

Modifier and TypeField and Description
protected static final int
protected static final int
protected static final int
Inherited from org.jruby.ext.socket.RubyBasicSocket:
libnamesmulticastStateManagerSOCKOPT

Constructor Summary

AccessConstructor and Description
public
RubyUNIXSocket(Ruby runtime, RubyClass type)

Method Summary

Modifier and TypeMethod and Description
public IRubyObject
pack-priv static RubyClass
public static IRubyObject
protected void
init_sock(Ruby runtime, Channel channel, String path)

protected void
init_sock(Ruby runtime, Channel channel)

protected void
init_unixsock(ThreadContext context, IRubyObject _path, boolean server)

public IRubyObject
public IRubyObject
public IRubyObject
protected static void
rb_sys_fail(Ruby runtime, String message)

public IRubyObject
public IRubyObject
public IRubyObject
public IRubyObject
public static IRubyObject
private static RubyString
Inherited from org.jruby.ext.socket.RubyBasicSocket:
addrForasBooleanbindContextMessagebindContextMessageclose_readclose_writecreateBasicSocketdo_not_reverse_lookupdo_not_reverse_lookupdo_not_reverse_lookupdoNotReverseLookupdoReaddoReadNonblockextractExceptionArggetInetRemoteSocketgetInetRemoteSocketgetInetSocketAddressgetpeereidgetpeernamegetpeernamegetRemoteSocketgetRemoteSocketgetSocketAddressgetsocknamegetsocknamegetSocknameCommongetsockoptgetsockoptgetUnixRemoteSocketgetUnixRemoteSocketgetUnixSocketAddressinitSocketlocal_addressnewChannelFDread_nonblockread_nonblockread_nonblockread_nonblockrecvrecvrecvrecv_nonblockrecvmsgrecvmsg_nonblockremote_addresssendsendsendmsgsendmsg_nonblockset_do_not_reverse_lookupset_do_not_reverse_lookupset_do_not_reverse_lookupsetsockoptsetsockoptshutdownsockerr

Field Detail

F_GETFLback to summary
protected static final int F_GETFL
F_SETFLback to summary
protected static final int F_SETFL
O_NONBLOCKback to summary
protected static final int O_NONBLOCK

Constructor Detail

RubyUNIXSocketback to summary
public RubyUNIXSocket(Ruby runtime, RubyClass type)

Method Detail

addrback to summary
public IRubyObject addr(ThreadContext context)
Annotations
@JRubyMethod
createUNIXSocketback to summary
pack-priv static RubyClass createUNIXSocket(ThreadContext context, RubyClass BasicSocket)
for_fdback to summary
public static IRubyObject for_fd(ThreadContext context, IRubyObject recv, IRubyObject _fileno)

Hides org.jruby.ext.socket.RubyBasicSocket.for_fd.

Annotations
@JRubyMethod
meta:true
init_sockback to summary
protected void init_sock(Ruby runtime, Channel channel, String path)
init_sockback to summary
protected void init_sock(Ruby runtime, Channel channel)
init_unixsockback to summary
protected void init_unixsock(ThreadContext context, IRubyObject _path, boolean server)
initializeback to summary
public IRubyObject initialize(ThreadContext context, IRubyObject path)
Annotations
@JRubyMethod
visibility:PRIVATE
pathback to summary
public IRubyObject path(ThreadContext context)

Overrides org.jruby.RubyIO.path.

Annotations
@JRubyMethod
peeraddrback to summary
public IRubyObject peeraddr(ThreadContext context)
Annotations
@JRubyMethod
rb_sys_failback to summary
protected static void rb_sys_fail(Ruby runtime, String message)
recv_ioback to summary
public IRubyObject recv_io(ThreadContext context, IRubyObject[] args)
Annotations
@JRubyMethod
optional:2
checkArity:false
recvfromback to summary
public IRubyObject recvfrom(ThreadContext context, IRubyObject[] args)
Annotations
@JRubyMethod
name:recvfrom
required:1
optional:1
checkArity:false
send_ioback to summary
public IRubyObject send_io(ThreadContext context, IRubyObject arg)
Annotations
@JRubyMethod
setsockoptback to summary
public IRubyObject setsockopt(ThreadContext context, IRubyObject _level, IRubyObject _opt, IRubyObject val)

Overrides org.jruby.ext.socket.RubyBasicSocket.setsockopt.

Annotations
@Override
socketpairback to summary
public static IRubyObject socketpair(ThreadContext context, IRubyObject recv, IRubyObject[] args)
Annotations
@JRubyMethod
name:socketpair, pair
optional:2
checkArity:false
meta:true
unixsockPathValueback to summary
private static RubyString unixsockPathValue(ThreadContext context, IRubyObject path)