NIO: reflow some comments (NFC) (#1677)

This commit is contained in:
Saleem Abdulrasool 2020-10-14 10:05:40 -07:00 committed by GitHub
parent d8c5a5ec84
commit 1cdbf763fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 8 deletions

View File

@ -293,10 +293,13 @@ extension NIOBSDSocket.Option {
/// Control multicast time-to-live.
public static let ip_multicast_ttl: NIOBSDSocket.Option =
NIOBSDSocket.Option(rawValue: IP_MULTICAST_TTL)
/// Request that we are passed type of service details when receiving datagrams.
/// Not public as the way to request this is to use `ChannelOptions.explicitCongestionNotification`
/// which works for both IPv4 and IPv6.
/// Request that we are passed type of service details when receiving
/// datagrams.
///
/// Not public as the way to request this is to use
/// `ChannelOptions.explicitCongestionNotification` which works for both
/// IPv4 and IPv6.
static let ip_recv_tos: NIOBSDSocket.Option =
NIOBSDSocket.Option(rawValue: IP_RECVTOS)
}
@ -327,10 +330,13 @@ extension NIOBSDSocket.Option {
/// restricted to IPv6 only.
public static let ipv6_v6only: NIOBSDSocket.Option =
NIOBSDSocket.Option(rawValue: IPV6_V6ONLY)
/// Request that we are passed traffic class details when receiving datagrams.
/// Not public as the way to request this is to use `ChannelOptions.explicitCongestionNotification`
/// which works for both IPv4 and IPv6.
/// Request that we are passed traffic class details when receiving
/// datagrams.
///
/// Not public as the way to request this is to use
/// `ChannelOptions.explicitCongestionNotification` which works for both
/// IPv4 and IPv6.
static let ipv6_recv_tclass: NIOBSDSocket.Option =
NIOBSDSocket.Option(rawValue: IPV6_RECVTCLASS)
}