49 references to Socket
System (42)
net\System\Net\_SafeNetHandles.cs (1)
2655
SocketOptionLevel.
Socket
,
net\System\Net\ServicePoint.cs (2)
323
finalSocket.SetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.ReceiveBuffer, ReceiveBufferSize);
1329
socket.SetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.ReuseUnicastPort, 0x1);
net\System\Net\Sockets\_AcceptOverlappedAsyncResult.cs (1)
84
SocketOptionLevel.
Socket
,
net\System\Net\Sockets\_ConnectOverlappedAsyncResult.cs (1)
43
SocketOptionLevel.
Socket
,
net\System\Net\Sockets\NetworkStream.cs (4)
258
int timeout = (int)m_StreamSocket.GetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.ReceiveTimeout);
290
int timeout = (int)m_StreamSocket.GetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.SendTimeout);
1286
chkStreamSocket.SetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.SendTimeout, timeout, silent);
1292
chkStreamSocket.SetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.ReceiveTimeout, timeout, silent);
net\System\Net\Sockets\Socket.cs (22)
626
return (int)GetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.ExclusiveAddressUse) != 0 ? true : false;
632
SetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.ExclusiveAddressUse, value ? 1 : 0);
639
return (int)GetSocketOption(SocketOptionLevel.
Socket
,
647
SetSocketOption(SocketOptionLevel.
Socket
,
654
return (int)GetSocketOption(SocketOptionLevel.
Socket
,
663
SetSocketOption(SocketOptionLevel.
Socket
,
670
return (int)GetSocketOption(SocketOptionLevel.
Socket
,
681
SetSocketOption(SocketOptionLevel.
Socket
,
688
return (int)GetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.SendTimeout);
699
SetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.SendTimeout, value);
705
return (LingerOption)GetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.Linger);
708
SetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.Linger, value);
804
return (int)GetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.Broadcast) != 0 ? true : false;
807
SetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.Broadcast, value ? 1 : 0);
2372
if (optionLevel==SocketOptionLevel.
Socket
&& optionName==SocketOptionName.Linger) {
2415
if (optionLevel==SocketOptionLevel.
Socket
&& optionName==SocketOptionName.Linger) {
5839
!(optionLevel == SocketOptionLevel.
Socket
&&
6334
SocketOptionLevel.
Socket
,
6621
SocketOptionLevel.
Socket
,
6649
SocketOptionLevel.
Socket
,
9832
SocketOptionLevel.
Socket
,
9868
SocketOptionLevel.
Socket
,
net\System\Net\Sockets\TCPClient.cs (10)
517
return numericOption(SocketOptionLevel.
Socket
,
521
Client.SetSocketOption(SocketOptionLevel.
Socket
,
535
return numericOption(SocketOptionLevel.
Socket
,
540
Client.SetSocketOption(SocketOptionLevel.
Socket
,
552
return numericOption(SocketOptionLevel.
Socket
,
556
Client.SetSocketOption(SocketOptionLevel.
Socket
,
568
return numericOption(SocketOptionLevel.
Socket
, SocketOptionName.SendTimeout);
572
Client.SetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.SendTimeout, value);
583
return (LingerOption)Client.GetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.Linger);
586
Client.SetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.Linger, value);
net\System\Net\Sockets\UDPClient.cs (1)
497
Client.SetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.Broadcast, 1);
System.Runtime.Remoting (6)
channels\core\exclusivetcplistener.cs (2)
42
base.Server.SetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.ExclusiveAddressUse, 1);
55
Server.SetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.ExclusiveAddressUse, 0);
channels\http\httpserverchannel.cs (2)
466
socket.SetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.KeepAlive, 1);
470
socket.SetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.Linger, lingerOption);
channels\tcp\tcpserverchannel.cs (2)
414
socket.SetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.KeepAlive, 1);
418
socket.SetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.Linger, lingerOption);
System.ServiceModel.Channels (1)
System\ServiceModel\Channels\UdpUtility.cs (1)
475
socket.SetSocketOption(SocketOptionLevel.
Socket
, SocketOptionName.ReuseAddress, 1);