種類
- 定数 (96)
- インスタンスメソッド (24)
- 文書 (12)
ライブラリ
- socket (120)
クラス
- Socket (48)
- UNIXSocket (24)
モジュール
-
Socket
:: Constants (48)
検索結果
先頭5件
-
Socket
:: AF _ UNIX -> Integer (15117.0) -
Unix domain socket。 Socket.open の第一引数 domain に使用します。
...Unix domain socket。
Socket.open の第一引数 domain に使用します。
@see sys/socket.h(header), unix(7linux)... -
Socket
:: Constants :: AF _ UNIX -> Integer (15117.0) -
Unix domain socket。 Socket.open の第一引数 domain に使用します。
...Unix domain socket。
Socket.open の第一引数 domain に使用します。
@see sys/socket.h(header), unix(7linux)... -
ruby 1
. 6 feature (60.0) -
ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。
...dev:17155>))
open("|-","r+") {|f|
if f
f.dup.close_write
else
sleep 1
end
}
=> ruby 1.6.7 (2002-03-01) [i586-linux]
-:3:in `close_write': closing non-duplex IO for writing (IOError)
from -:3
from -:1:in `open'......ルシステムでこ
のような場合があります)が File#read などで読めないバグが修正されまし
た。
p File.open("/proc/#$$/cmdline").read
=> ruby 1.6.7 (2002-03-01) [i586-linux]
""
=> ruby 1.6.7 (2002-03-29) [i586-linux]......"/tmp/sss").accept
# client
require 'socket'
sock = UNIXSocket.new("/tmp/sss").addr
=> ["AF_UNIX", "\031((\306\031(\010"]
=> ["AF_UNIX", ""]
: ???
((<ruby-talk:21722>))
class Ptr
def initialize(obj) @obj = obj end... -
UNIXSocket
# addr -> [String , String] (52.0) -
ソケットの接続情報を表す配列を返します。配列の各要素は第1要 素が文字列 "AF_UNIX"、第2要素がパスを表す文字列です。
...が文字列 "AF_UNIX"、第2要素がパスを表す文字列です。
クライアント側はパスを持たないため空文字列となります。
例:
require 'socket'
UNIXServer.open("/tmp/s") {|serv|
p serv.addr #=> ["AF_UNIX", "/tmp/s"]
}
UNIXServer.open("/tmp/s") {|se......rv|
c = UNIXSocket.open("/tmp/s")
p c.peeraddr #=> ["AF_UNIX", "/tmp/s"]
p c.addr #=> ["AF_UNIX", ""]
}
@see UNIXSocket#peeraddr... -
UNIXSocket
# peeraddr -> [String , String] (40.0) -
接続相手先ソケットの情報を表す配列を返します。配列の各要素は第1要 素が文字列 "AF_UNIX"、第2要素がパスを表す文字列です。
...各要素は第1要
素が文字列 "AF_UNIX"、第2要素がパスを表す文字列です。
例:
require 'socket'
UNIXServer.open("/tmp/s") {|serv|
c = UNIXSocket.open("/tmp/s")
p c.peeraddr #=> ["AF_UNIX", "/tmp/s"]
p c.addr #=> ["AF_UNIX", ""]
}
@see UNIXSocket#addr... -
Socket
:: AF _ LOCAL -> Integer (17.0) -
Unix domain socket。 Socket.open の第一引数 domain に使用します。
...Unix domain socket。
Socket.open の第一引数 domain に使用します。
@see sys/socket.h(header), unix(7linux)... -
Socket
:: Constants :: AF _ LOCAL -> Integer (17.0) -
Unix domain socket。 Socket.open の第一引数 domain に使用します。
...Unix domain socket。
Socket.open の第一引数 domain に使用します。
@see sys/socket.h(header), unix(7linux)... -
Socket
:: Constants :: PF _ LOCAL -> Integer (17.0) -
Unix domain socket。 Socket.open の第一引数 domain に使用します。
...Unix domain socket。
Socket.open の第一引数 domain に使用します。
@see sys/socket.h(header), unix(7linux)... -
Socket
:: Constants :: PF _ UNIX -> Integer (17.0) -
Unix domain socket。 Socket.open の第一引数 domain に使用します。
...Unix domain socket。
Socket.open の第一引数 domain に使用します。
@see sys/socket.h(header), unix(7linux)...