72件ヒット
[1-72件を表示]
(0.024秒)
種類
- 定数 (48)
- インスタンスメソッド (24)
クラス
- BasicSocket (12)
- Socket (36)
モジュール
-
Socket
:: Constants (24)
キーワード
-
IPV6
_ CHECKSUM (24) -
SO
_ NO _ CHECK (24) -
connect
_ nonblock (12) - getpeereid (12)
検索結果
先頭5件
-
Socket
:: Constants :: SO _ NO _ CHECK -> Integer (6103.0) -
@todo Disable checksums。
...@todo
Disable checksums。... -
Socket
:: SO _ NO _ CHECK -> Integer (6103.0) -
@todo Disable checksums。
...@todo
Disable checksums。... -
Socket
:: Constants :: IPV6 _ CHECKSUM -> Integer (6102.0) -
Byte offset into a packet where the checksum is located. BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
...Byte offset into a packet where the checksum is located.
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see Socket::Constants::IPPROTO_IPV6,
ip6(4freebsd),
3542... -
Socket
:: IPV6 _ CHECKSUM -> Integer (6102.0) -
Byte offset into a packet where the checksum is located. BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
...Byte offset into a packet where the checksum is located.
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see Socket::Constants::IPPROTO_IPV6,
ip6(4freebsd),
3542... -
BasicSocket
# getpeereid -> [Integer , Integer] (8.0) -
Unix ドメインソケットにおいて接続相手の euid と egid を 返します。
...が Unix ドメインソケットでない場合の返り値は
不定です。
require 'socket'
Socket.unix_server_loop("/tmp/sock") {|s|
begin
euid, egid = s.getpeereid
# Check the connected client is myself or not.
next if euid != Process.uid
# do s... -
Socket
# connect _ nonblock(server _ sockaddr) -> 0 (8.0) -
ソケットをノンブロッキングモードに設定した後、 connect(2) を呼び出します。
...ソケットをノンブロッキングモードに設定した後、
connect(2) を呼び出します。
引数、返り値は Socket#connect と同じです。
connect が EINPROGRESS エラーを報告した場合、その例外(Errno::EINPROGRESS)
には IO::WaitWritable が Object#extend さ......eb page
require 'socket'
include Socket::Constants
socket = Socket.new(AF_INET, SOCK_STREAM, 0)
sockaddr = Socket.sockaddr_in(80, 'www.google.com')
begin # emulate blocking connect
socket.connect_nonblock(sockaddr)
rescue IO::WaitWritable
IO.select(nil, [socket]) # wait 3-way han......dshake completion
begin
socket.connect_nonblock(sockaddr) # check connection failure
rescue Errno::EISCONN
end
end
socket.write("GET / HTTP/1.0\r\n\r\n")
results = socket.read
@param server_sockaddr 接続先アドレス
@raise Errno::EXXX connect(2) がエラーを報告...