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