るりまサーチ

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

別のキーワード

  1. _builtin constants
  2. module constants
  3. socket constants
  4. constants iff_loopback
  5. constants iff_dont_bridge

ライブラリ

クラス

モジュール

検索結果

Socket::Constants::SCM_TIMESTAMPNS -> Integer (39101.0)

Timestamp (timespec).

Timestamp (timespec).

Socket::AncillaryData の type として利用します。

@see Socket::AncillaryData, Socket::AncillaryData#timestamp
BasicSocket#sendmsg, BasicSocket#recvmsg

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

タイムスタンプ制御メッセージに含まれる時刻を 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_BINTIME (2**(-64) second) FreeBSD

require 'socket'

Addrinfo.udp("127.0.0.1", 0).bind {|s1|...
...00
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::Constants
::SO_TIMESTAMPNS,
Socket::Constants
::SO_BINTIME...