るりまサーチ

最速Rubyリファレンスマニュアル検索!
33件ヒット [1-33件を表示] (0.178秒)
トップページ > クエリ:-[x] > クエリ:r[x] > クエリ:constants[x] > クエリ:Constants[x] > クエリ:SO_TIMESTAMPNS[x]

別のキーワード

  1. _builtin constants
  2. module constants
  3. constants standard_rights_read
  4. constants so_wantmore
  5. constants so_wantoobflag

ライブラリ

クラス

モジュール

検索結果

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

@todo Receive nanosecond timestamp with datagrams (timespec)。

...@todo
R
eceive nanosecond timestamp with datagrams (timespec)。

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

Socket::SO_TIMESTAMPNS -> Integer (18313.0)

@todo Receive nanosecond timestamp with datagrams (timespec)。

...@todo
R
eceive nanosecond timestamp with datagrams (timespec)。

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

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

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

...L_SOCKET/SCM_TIMESTAMP (micro second) GNU/Linux, FreeBSD, NetBSD, OpenBSD, Solaris, MacOS X
* SOL_SOCKET/SCM_TIMESTAMPNS (nano second) GNU/Linux
* SOL_SOCKET/SCM_BINTIME (2**(-64) second) FreeBSD

r
equire 'socket'

Addrinfo.udp("127.0.0.1", 0).bind {|s1|
Addrinfo.udp("127.0.0.1", 0).bi...
...l_address
ctl = s1.recvmsg.last
p ctl
#=> #<Socket::AncillaryData: INET SOCKET TIMESTAMP 2009-02-24 17:35:46.775581>
t = ctl.timestamp
p t #=> 2009-02-24 17:35:46 +0900
p t.usec #=> 775581
p t.nsec #=> 775581000
}
}

@see Socket::Constants::SC...
...M_TIMESTAMP,
Socket::Constants::SCM_TIMESTAMPNS,
Socket::Constants::SCM_BINTIME,
Socket::Constants::SO_TIMESTAMP,
Socket::Constants::SO_TIMESTAMPNS,
Socket::Constants::SO_BINTIME...