るりまサーチ

最速Rubyリファレンスマニュアル検索!
55件ヒット [1-55件を表示] (0.116秒)
トップページ > クエリ:i[x] > クエリ:AMP[x] > クエリ:SO_TIMESTAMP[x]

別のキーワード

  1. rexml amp
  2. rexml/document amp
  3. entityconst amp
  4. amp rexml/document
  5. amp rexml::entityconst

ライブラリ

クラス

モジュール

キーワード

検索結果

Socket::Constants::SO_TIMESTAMP -> Integer (30301.0)

Receive timestamp with datagrams (timeval)。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

...Receive timestamp with datagrams (timeval)。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see getsockopt(2freebsd),
socket(7linux), Socket::Constants::SOL_SOCKET
Socket::AncillaryData#timestamp...

Socket::SO_TIMESTAMP -> Integer (30301.0)

Receive timestamp with datagrams (timeval)。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

...Receive timestamp with datagrams (timeval)。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see getsockopt(2freebsd),
socket(7linux), Socket::Constants::SOL_SOCKET
Socket::AncillaryData#timestamp...

Socket::Constants::SO_TIMESTAMPNS -> Integer (18306.0)

@todo Receive nanosecond timestamp with datagrams (timespec)。

...@todo
Receive nanosecond timestamp with datagrams (timespec)。

@see Socket::Constants::SO_TIMESTAMP,
Socket::AncillaryData#timestamp...

Socket::SO_TIMESTAMPNS -> Integer (18306.0)

@todo Receive nanosecond timestamp with datagrams (timespec)。

...@todo
Receive nanosecond timestamp with datagrams (timespec)。

@see Socket::Constants::SO_TIMESTAMP,
Socket::AncillaryData#timestamp...

Socket::AncillaryData#timestamp -> Time (12306.0)

タイムスタンプ制御メッセージに含まれる時刻を Time オブジェクト で返します。

...Time オブジェクト
で返します。

"タイムスタンプ制御メッセージ" は以下のいずれかです。
* SOL_SOCKET/SCM_TIMESTAMP (micro second) GNU/Linux, FreeBSD, NetBSD, OpenBSD, Solaris, MacOS X
* SOL_SOCKET/SCM_TIMESTAMPNS (nano second) GNU/Linux
* SOL_SOCKET/SCM_BI...
...NTIME (2**(-64) second) FreeBSD

require 'socket'

Addrinfo.udp("127.0.0.1", 0).bind {|s1|
Addrinfo.udp("127.0.0.1", 0).bind {|s2|
s1.setsockopt(:SOCKET, :TIMESTAMP, true)
s2.send "a", 0, s1.local_address
ctl = s1.recvmsg.last
p ctl
#=> #<Socket::AncillaryDa...
...t = ctl.timestamp
p t #=> 2009-02-24 17:35:46 +0900
p t.usec #=> 775581
p t.nsec #=> 775581000
}
}

@see Socket::Constants::SCM_TIMESTAMP,
Socket::Constants::SCM_TIMESTAMPNS,
Socket::Constants::SCM_BINTIME,
Socket::Constants::SO_TIMESTAMP,
Socket...

絞り込み条件を変える