るりまサーチ

最速Rubyリファレンスマニュアル検索!
33件ヒット [1-33件を表示] (0.033秒)

別のキーワード

  1. ancillarydata ip_pktinfo
  2. ancillarydata int
  3. ancillarydata unix_rights
  4. ancillarydata ipv6_pktinfo
  5. socket ancillarydata

ライブラリ

クラス

モジュール

検索結果

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

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

...s1.setsockopt(:SOCKET, :TIMESTAMP, true)
s2.send "a", 0, s1.local_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::SCM_TIMESTAMP,
Socket::Constants::SCM_TIMESTAMPNS,
Socket::Constants::SCM_BINTIME,
Socket::Constants::SO_TIMESTAMP,
Socket::Constants::SO_TIMESTAMPNS,
Socket::Constants::SO_BINTIME...

Socket::Constants::SO_TIMESTAMPNS -> Integer (18107.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 (18107.0)

@todo Receive nanosecond timestamp with datagrams (timespec)。

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

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