32 references to TrackedSocketOptions
System.Net.Sockets (32)
System\Net\Sockets\SafeSocketHandle.Unix.cs (13)
20
private
TrackedSocketOptions
_trackedOptions;
56
internal bool IsTrackedOption(
TrackedSocketOptions
option) => (_trackedOptions & option) != 0;
66
case SocketOptionName.NoDelay: _trackedOptions |=
TrackedSocketOptions
.NoDelay; return;
73
case SocketOptionName.DontFragment: _trackedOptions |=
TrackedSocketOptions
.DontFragment; return;
74
case SocketOptionName.IpTimeToLive: _trackedOptions |=
TrackedSocketOptions
.Ttl; return;
81
case SocketOptionName.IPv6Only: _trackedOptions |=
TrackedSocketOptions
.DualMode; return;
82
case SocketOptionName.IpTimeToLive: _trackedOptions |=
TrackedSocketOptions
.Ttl; return;
89
case SocketOptionName.Broadcast: _trackedOptions |=
TrackedSocketOptions
.EnableBroadcast; return;
90
case SocketOptionName.Linger: _trackedOptions |=
TrackedSocketOptions
.LingerState; return;
91
case SocketOptionName.ReceiveBuffer: _trackedOptions |=
TrackedSocketOptions
.ReceiveBufferSize; return;
92
case SocketOptionName.ReceiveTimeout: _trackedOptions |=
TrackedSocketOptions
.ReceiveTimeout; return;
93
case SocketOptionName.SendBuffer: _trackedOptions |=
TrackedSocketOptions
.SendBufferSize; return;
94
case SocketOptionName.SendTimeout: _trackedOptions |=
TrackedSocketOptions
.SendTimeout; return;
System\Net\Sockets\Socket.Unix.cs (19)
142
if (_handle.IsTrackedOption(
TrackedSocketOptions
.DontFragment)) dontFragment = DontFragment;
143
if (_handle.IsTrackedOption(
TrackedSocketOptions
.EnableBroadcast)) broadcast = EnableBroadcast;
144
if (_handle.IsTrackedOption(
TrackedSocketOptions
.LingerState)) linger = LingerState;
145
if (_handle.IsTrackedOption(
TrackedSocketOptions
.NoDelay)) noDelay = NoDelay;
146
if (_handle.IsTrackedOption(
TrackedSocketOptions
.ReceiveBufferSize)) receiveSize = ReceiveBufferSize;
147
if (_handle.IsTrackedOption(
TrackedSocketOptions
.ReceiveTimeout)) receiveTimeout = ReceiveTimeout;
148
if (_handle.IsTrackedOption(
TrackedSocketOptions
.SendBufferSize)) sendSize = SendBufferSize;
149
if (_handle.IsTrackedOption(
TrackedSocketOptions
.SendTimeout)) sendTimeout = SendTimeout;
150
if (_handle.IsTrackedOption(
TrackedSocketOptions
.Ttl)) ttl = Ttl;
173
if (_handle.IsTrackedOption(
TrackedSocketOptions
.DualMode)) DualMode = _handle.DualMode;
174
if (_handle.IsTrackedOption(
TrackedSocketOptions
.DontFragment)) DontFragment = dontFragment;
175
if (_handle.IsTrackedOption(
TrackedSocketOptions
.EnableBroadcast)) EnableBroadcast = broadcast;
176
if (_handle.IsTrackedOption(
TrackedSocketOptions
.LingerState)) LingerState = linger!;
177
if (_handle.IsTrackedOption(
TrackedSocketOptions
.NoDelay)) NoDelay = noDelay;
178
if (_handle.IsTrackedOption(
TrackedSocketOptions
.ReceiveBufferSize)) ReceiveBufferSize = receiveSize;
179
if (_handle.IsTrackedOption(
TrackedSocketOptions
.ReceiveTimeout)) ReceiveTimeout = receiveTimeout;
180
if (_handle.IsTrackedOption(
TrackedSocketOptions
.SendBufferSize)) SendBufferSize = sendSize;
181
if (_handle.IsTrackedOption(
TrackedSocketOptions
.SendTimeout)) SendTimeout = sendTimeout;
182
if (_handle.IsTrackedOption(
TrackedSocketOptions
.Ttl)) Ttl = ttl;