20 references to GetSocketOption
System.Net.Sockets (20)
System\Net\Sockets\NetworkStream.cs (2)
123
int timeout = (int)_streamSocket.
GetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.ReceiveTimeout)!;
150
int timeout = (int)_streamSocket.
GetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.SendTimeout)!;
System\Net\Sockets\Socket.cs (14)
500
return (int)
GetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.ExclusiveAddressUse)! != 0 ? true : false;
516
return (int)
GetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.ReceiveBuffer)!;
530
return (int)
GetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.SendBuffer)!;
546
return (int)
GetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.ReceiveTimeout)!;
566
return (int)
GetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.SendTimeout)!;
589
return (LingerOption?)
GetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.Linger);
603
return (int)
GetSocketOption
(SocketOptionLevel.Tcp, SocketOptionName.NoDelay)! != 0 ? true : false;
617
return (short)(int)
GetSocketOption
(SocketOptionLevel.IP, SocketOptionName.IpTimeToLive)!;
621
return (short)(int)
GetSocketOption
(SocketOptionLevel.IPv6, SocketOptionName.IpTimeToLive)!;
659
return (int)
GetSocketOption
(SocketOptionLevel.IP, SocketOptionName.DontFragment)! != 0 ? true : false;
692
return (int)
GetSocketOption
(SocketOptionLevel.IP, SocketOptionName.MulticastLoopback)! != 0 ? true : false;
696
return (int)
GetSocketOption
(SocketOptionLevel.IPv6, SocketOptionName.MulticastLoopback)! != 0 ? true : false;
731
return (int)
GetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.Broadcast)! != 0 ? true : false;
756
return ((int)
GetSocketOption
(SocketOptionLevel.IPv6, SocketOptionName.IPv6Only)! == 0);
System\Net\Sockets\TCPClient.cs (4)
308
get { return (int)Client.
GetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.ReceiveBuffer)!; }
315
get { return (int)Client.
GetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.SendBuffer)!; }
325
return (int)Client.
GetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.ReceiveTimeout)!;
340
return (int)Client.
GetSocketOption
(SocketOptionLevel.Socket, SocketOptionName.SendTimeout)!;