30 instantiations of Socket
System (21)
net\System\Net\_AutoWebProxyScriptHelper.cs (1)
675 Socket s = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp);
net\System\Net\_FtpControlStream.cs (1)
1166Socket socket = new Socket( templateSocket.AddressFamily, templateSocket.SocketType, templateSocket.ProtocolType );
net\System\Net\ServicePoint.cs (2)
246socket = new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp); 250socket6 = new Socket(AddressFamily.InterNetworkV6,SocketType.Stream,ProtocolType.Tcp);
net\System\Net\Sockets\_MultipleConnectAsync.cs (2)
427socket4 = new Socket(AddressFamily.InterNetwork, socketType, protocolType); 431socket6 = new Socket(AddressFamily.InterNetworkV6, socketType, protocolType);
net\System\Net\Sockets\Socket.cs (5)
5390acceptSocket = new Socket(addressFamily,socketType,protocolType); 7326Socket socket = new Socket(fd); 7707e.AcceptSocket = new Socket(addressFamily, socketType, protocolType); 7892attemptSocket = new Socket(dnsEP.AddressFamily, socketType, protocolType); 7901Socket attemptSocket = new Socket(endPointSnapshot.AddressFamily, socketType, protocolType);
net\System\Net\Sockets\TCPClient.cs (3)
222ipv4Socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); 225ipv6Socket = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp); 608Client = new Socket(m_Family, SocketType.Stream, ProtocolType.Tcp);
net\System\Net\Sockets\TCPListener.cs (4)
39m_ServerSocket = new Socket(m_ServerSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp); 58m_ServerSocket = new Socket(m_ServerSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp); 79m_ServerSocket = new Socket(m_ServerSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp); 213m_ServerSocket = new Socket(m_ServerSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
net\System\Net\Sockets\UDPClient.cs (3)
339ipv4Socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); 342ipv6Socket = new Socket(AddressFamily.InterNetworkV6, SocketType.Dgram, ProtocolType.Udp); 1044Client = new Socket(m_Family, SocketType.Dgram, ProtocolType.Udp);
System.Runtime.Remoting (2)
channels\core\socketcache.cs (2)
143Socket socket = new Socket(ipEndPoint.AddressFamily, 157Socket socket = new Socket(family,
System.ServiceModel (6)
System\ServiceModel\Channels\PeerIPHelper.cs (1)
445this.ipv6Socket = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.IP);
System\ServiceModel\Channels\SharedConnectionListener.cs (1)
760Socket socket = new Socket(duplicateContext.SocketInformation);
System\ServiceModel\Channels\SocketConnection.cs (3)
1721socket = new Socket(addressFamily, SocketType.Stream, ProtocolType.Tcp); 1877this.socket = new Socket(addressFamily, SocketType.Stream, ProtocolType.Tcp); 2105this.listenSocket = new Socket(localEndpoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
System\ServiceModel\Channels\TcpChannelListener.cs (1)
314Socket result = new Socket(localEndpoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
System.ServiceModel.Channels (1)
System\ServiceModel\Channels\UdpUtility.cs (1)
127socket = new Socket(localEndpoint.AddressFamily, SocketType.Dgram, ProtocolType.Udp);
315 references to Socket
SMSvcHost (4)
System\ServiceModel\Activation\TransportListener.cs (4)
46if (Socket.OSSupportsIPv4) 52if (Socket.OSSupportsIPv6) 216Socket socket = connection.GetCoreTransport() as Socket;
System (233)
net\System\Net\_AutoWebProxyScriptHelper.cs (2)
87 else if(Socket.OSSupportsIPv6) 675 Socket s = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp);
net\System\Net\_ConnectStream.cs (2)
2346Socket socket = InternalSocket; 2362private Socket InternalSocket {
net\System\Net\_FtpControlStream.cs (10)
46private Socket m_DataSocket; 106Socket socket = m_DataSocket; 122Socket listenSocket = (Socket)castedAsyncResult.AsyncObject; 146Socket dataSocket = (Socket)castedAsyncResult.AsyncObject; 737Socket listenSocket = m_DataSocket; 1163protected Socket CreateFtpDataSocket(FtpWebRequest request, Socket templateSocket) 1166Socket socket = new Socket( templateSocket.AddressFamily, templateSocket.SocketType, templateSocket.ProtocolType );
net\System\Net\_FtpDataStream.cs (1)
71m_NetworkStream.Close(Socket.DefaultCloseTimeout);
net\System\Net\_PooledStream.cs (8)
40private Socket m_AbortSocket; // in abort scenarios, used to abort connect 41private Socket m_AbortSocket6; // in abort scenarios, used to abort connect 157Socket socket = ServicePoint.GetConnection(this, owningObject, async, out address, ref m_AbortSocket, ref m_AbortSocket6); 197internal virtual void ConnectionCallback(object owningObject, Exception e, Socket socket, IPAddress address) 345protected Socket Socket { 596Socket socket = m_NetworkStream.InternalSocket; 617Socket socket4 = m_AbortSocket; 618Socket socket6 = m_AbortSocket6;
net\System\Net\_TLSstream.cs (3)
252Socket chkSocket = this.Socket; 323Socket chkSocket = this.Socket; 353Socket chkSocket = this.Socket;
net\System\Net\DNS.cs (6)
236if ( Socket.LegacySupportsIPv6 || includeIPv6) { 356if ( Socket.LegacySupportsIPv6 || includeIPv6) { 459Socket.InitializeSockets(); 515if (IPAddress.TryParse(hostName, out address) && (address.AddressFamily != AddressFamily.InterNetworkV6 || Socket.LegacySupportsIPv6)) 1142(pAddressInfo->ai_family == AddressFamily.InterNetworkV6 && Socket.OSSupportsIPv6)) 1203Socket.InitializeSockets();
net\System\Net\Internal.cs (5)
554Socket.InitializeSockets(); 556if (Socket.OSSupportsIPv4) 563if(Socket.OSSupportsIPv6){ 577if (Socket.OSSupportsIPv4 && (startIPOptions & StartIPOptions.StartIPv4) != 0){ 600if(Socket.OSSupportsIPv6 && (startIPOptions & StartIPOptions.StartIPv6) !=0){
net\System\Net\IPAddress.cs (3)
187if(Socket.OSSupportsIPv6) 277Socket.InitializeSockets(); 435if(Socket.OSSupportsIPv6)
net\System\Net\NetworkInformation\NetworkAddressChange.cs (5)
253Socket.InitializeSockets(); 257if(Socket.OSSupportsIPv4){ 264if(Socket.OSSupportsIPv6){ 286if(Socket.OSSupportsIPv4 && (startIPOptions & StartIPOptions.StartIPv4) !=0){ 314if(Socket.OSSupportsIPv6 && (startIPOptions & StartIPOptions.StartIPv6) !=0){
net\System\Net\NetworkInformation\ping.cs (2)
746if (ip.AddressFamily == AddressFamily.InterNetwork && !Socket.OSSupportsIPv4) 749else if ((ip.AddressFamily == AddressFamily.InterNetworkV6 && !Socket.OSSupportsIPv6))
net\System\Net\NetworkInformation\SystemIPGlobalProperties.cs (4)
158if (Socket.OSSupportsIPv4) { 200if (Socket.OSSupportsIPv6) { 265if (Socket.OSSupportsIPv4) { 305if (Socket.OSSupportsIPv6) {
net\System\Net\ServicePoint.cs (25)
227internal Socket GetConnection(PooledStream PooledStream, object owner, bool async, out IPAddress address, ref Socket abortSocket, ref Socket abortSocket6) 229Socket socket = null; 230Socket socket6 = null; 231Socket finalSocket = null; 245if ( Socket.OSSupportsIPv4 ) { 249if ( Socket.OSSupportsIPv6 ) { 301private void CompleteGetConnection(Socket socket, Socket socket6, Socket finalSocket, IPAddress address) { 1206internal ConnectSocketState(ServicePoint servicePoint, PooledStream pooledStream, object owner, Socket s4, Socket s6) 1215internal Socket s4; 1216internal Socket s6; 1232Socket socket = null; 1286private void BindUsingDelegate(Socket socket, IPEndPoint remoteIPEndPoint) 1312private void SetUnicastReusePortForSocket(Socket socket) 1357private WebExceptionStatus ConnectSocketInternal(bool connectFailure, Socket s4, Socket s6, ref Socket socket, 1412Socket attemptSocket; 1510private WebExceptionStatus ConnectSocket(Socket s4, Socket s6, ref Socket socket, ref IPAddress address,
net\System\Net\Sockets\_AcceptOverlappedAsyncResult.cs (4)
24private Socket m_ListenSocket; 25private Socket m_AcceptSocket; 35internal AcceptOverlappedAsyncResult(Socket listenSocket, Object asyncState, AsyncCallback asyncCallback) : 163internal Socket AcceptSocket
net\System\Net\Sockets\_BaseOverlappedAsyncResult.cs (7)
49internal BaseOverlappedAsyncResult(Socket socket, Object asyncState, AsyncCallback asyncCallback) 55m_UseOverlappedIO = Socket.UseOverlappedIO || socket.UseOnlyOverlappedIO; 78internal BaseOverlappedAsyncResult(Socket socket) 157Socket s = (Socket) AsyncObject; 347Socket socket = asyncResult.AsyncObject as Socket;
net\System\Net\Sockets\_ConnectOverlappedAsyncResult.cs (3)
21internal ConnectOverlappedAsyncResult(Socket socket, EndPoint endPoint, Object asyncState, AsyncCallback asyncCallback): 34Socket socket = (Socket)AsyncObject;
net\System\Net\Sockets\_DisconnectOverlappedAsyncResult.cs (3)
20internal DisconnectOverlappedAsyncResult(Socket socket, Object asyncState, AsyncCallback asyncCallback): 32Socket socket = (Socket)AsyncObject;
net\System\Net\Sockets\_MultipleConnectAsync.cs (10)
222Socket attemptSocket = null; 365protected abstract IPAddress GetNextAddress(out Socket attemptSocket); 373private Socket socket; 376public SingleSocketMultipleConnectAsync(Socket socket, bool userSocket) 382protected override IPAddress GetNextAddress(out Socket attemptSocket) 420private Socket socket4; 421private Socket socket6; 425if (Socket.OSSupportsIPv4) 429if (Socket.OSSupportsIPv6) 435protected override IPAddress GetNextAddress(out Socket attemptSocket)
net\System\Net\Sockets\_OverlappedAsyncResult.cs (1)
41internal OverlappedAsyncResult(Socket socket, Object asyncState, AsyncCallback asyncCallback) :
net\System\Net\Sockets\_ReceiveMessageOverlappedAsyncResult.cs (3)
49internal ReceiveMessageOverlappedAsyncResult(Socket socket, Object asyncState, AsyncCallback asyncCallback) : 81bool ipv4 = (((Socket)AsyncObject).AddressFamily == AddressFamily.InterNetwork 83bool ipv6 = ((Socket)AsyncObject).AddressFamily == AddressFamily.InterNetworkV6;
net\System\Net\Sockets\_TransmitFileOverlappedAsyncResult.cs (2)
34internal TransmitFileOverlappedAsyncResult(Socket socket, Object asyncState, AsyncCallback asyncCallback) 38internal TransmitFileOverlappedAsyncResult(Socket socket):base(socket){
net\System\Net\Sockets\AddressFamily.cs (1)
11/// Specifies the address families that an instance of the <see cref='System.Net.Sockets.Socket'/>
net\System\Net\Sockets\IOControlCode.cs (1)
12/// Specifies the iocontrol codes that the <see cref='System.Net.Sockets.Socket'/> class supports.
net\System\Net\Sockets\NetworkStream.cs (32)
25private Socket m_StreamSocket; 53/// <para>Creates a new instance of the <see cref='System.Net.Sockets.NetworkStream'/> class for the specified <see cref='System.Net.Sockets.Socket'/>.</para> 55public NetworkStream(Socket socket) { 70public NetworkStream(Socket socket, bool ownsSocket) { 85Socket socket = networkStream.Socket; 95/// <para>Creates a new instance of the <see cref='System.Net.Sockets.NetworkStream'/> class for the specified <see cref='System.Net.Sockets.Socket'/> with the specified access rights.</para> 97public NetworkStream(Socket socket, FileAccess access) { 109public NetworkStream(Socket socket, FileAccess access, bool ownsSocket) { 126protected Socket Socket { 132internal Socket InternalSocket { 134Socket chkSocket = m_StreamSocket; 150Socket chkSocket = m_StreamSocket; 328Socket chkStreamSocket = m_StreamSocket; 401internal void InitNetworkStream(Socket socket, FileAccess Access) { 437Socket chkStreamSocket = m_StreamSocket; 449Socket chkStreamSocket = m_StreamSocket; 507Socket chkStreamSocket = m_StreamSocket; 581Socket chkStreamSocket = m_StreamSocket; 609private int m_CloseTimeout = Socket.DefaultCloseTimeout; // 1 ms; -1 = respect linger options 650Socket chkStreamSocket = m_StreamSocket; 682Socket socket = m_StreamSocket; 740Socket chkStreamSocket = m_StreamSocket; 785Socket chkStreamSocket = m_StreamSocket; 852Socket chkStreamSocket = m_StreamSocket; 925Socket chkStreamSocket = m_StreamSocket; 976Socket chkStreamSocket = m_StreamSocket; 1037Socket chkStreamSocket = m_StreamSocket; 1078Socket chkStreamSocket = m_StreamSocket; 1126Socket chkStreamSocket = m_StreamSocket; 1180Socket chkStreamSocket = m_StreamSocket; 1227Socket chkStreamSocket = m_StreamSocket; 1280Socket chkStreamSocket = m_StreamSocket;
net\System\Net\Sockets\ProtocolFamily.cs (1)
11/// Specifies the type of protocol that an instance of the <see cref='System.Net.Sockets.Socket'/>
net\System\Net\Sockets\ProtocolType.cs (1)
12/// Specifies the protocols that the <see cref='System.Net.Sockets.Socket'/> class supports.
net\System\Net\Sockets\Socket.cs (48)
23/// <para>The <see cref='Sockets.Socket'/> class implements the Berkeley sockets 111private int m_CloseTimeout = Socket.DefaultCloseTimeout; 138/// Initializes a new instance of the <see cref='Sockets.Socket'/> class. 1205/// Creates a new <see cref='Sockets.Socket'/> instance to handle an incoming 1209public Socket Accept() { 1256Socket socket = CreateAcceptSocket(acceptedSocketHandle, m_RightEndPoint.Create(socketAddress), false); 5351public IAsyncResult BeginAccept(Socket acceptSocket, int receiveSize, AsyncCallback callback, object state) { 5378private void DoBeginAccept(Socket acceptSocket, int receiveSize, AcceptOverlappedAsyncResult asyncResult) 5473public Socket EndAccept(IAsyncResult asyncResult) { 5527Socket acceptedSocket = (Socket)result; 5543public Socket EndAccept( out byte[] buffer, IAsyncResult asyncResult) { 5547Socket socket = EndAccept(out innerBuffer,out bytesTransferred, asyncResult); 5557public Socket EndAccept( out byte[] buffer, out int bytesTransferred, IAsyncResult asyncResult) { 5577Socket socket = (Socket)castedAsyncResult.InternalWaitForCompletion(); 6824if (!(socketList[current] is Socket)) { 6825throw new ArgumentException(SR.GetString(SR.net_sockets_select, socketList[current].GetType().FullName, typeof(System.Net.Sockets.Socket).FullName), "socketList"); 6827fileDescriptorSet[current + 1] = ((Socket)socketList[current]).m_Handle.DangerousGetHandle(); 6851Socket socket = socketList[currentSocket] as Socket; 7067internal MultipleAddressConnectAsyncResult(IPAddress[] addresses, int port, Socket socket, object myState, AsyncCallback myCallBack) : 7075internal Socket socket; // Keep this member just to avoid all the casting. 7322private Socket CreateAcceptSocket(SafeCloseSocket fd, EndPoint remoteEP, bool needCancelSelect) { 7326Socket socket = new Socket(fd); 7330internal Socket UpdateAcceptSocket(Socket socket, EndPoint remoteEP, bool needCancelSelect) { 7586GlobalLog.Enter("Socket#" + ValidationHelper.HashString(state) + "::RegisteredWaitCallback", "m_BlockEventBits:" + ((Socket)state).m_BlockEventBits.ToString()); 7591Socket me = (Socket)state; 7610GlobalLog.Leave("Socket#" + ValidationHelper.HashString(state) + "::RegisteredWaitCallback", "m_BlockEventBits:" + ((Socket)state).m_BlockEventBits.ToString()); 7887Socket attemptSocket = null; 7901Socket attemptSocket = new Socket(endPointSnapshot.AddressFamily, socketType, protocolType); 8586internal Socket m_AcceptSocket; 8587private Socket m_ConnectSocket; 8675private Socket m_CurrentSocket; 8726public Socket AcceptSocket { 8731public Socket ConnectSocket { 8998internal void StartOperationCommon(Socket socket) { 9777internal void FinishWrapperConnectSuccess(Socket connectSocket, int bytesTransferred, SocketFlags flags) { 9804if (Socket.s_PerfCountersEnabled) UpdatePerfCounters(bytesTransferred, false); 9861if (Socket.s_PerfCountersEnabled) UpdatePerfCounters(bytesTransferred, true); 9902if (Socket.s_PerfCountersEnabled) UpdatePerfCounters(bytesTransferred, false); 9911if (Socket.s_PerfCountersEnabled) UpdatePerfCounters(bytesTransferred, false); 9931if (Socket.s_PerfCountersEnabled) UpdatePerfCounters(bytesTransferred, false); 9978if (Socket.s_PerfCountersEnabled) UpdatePerfCounters(bytesTransferred, true); 9987if(Socket.s_PerfCountersEnabled) UpdatePerfCounters(bytesTransferred, true); 10012if (Socket.s_PerfCountersEnabled) UpdatePerfCounters(bytesTransferred, true);
net\System\Net\Sockets\SocketOptionLevel.cs (1)
16/// Defines socket option levels for the <see cref='System.Net.Sockets.Socket'/> class.
net\System\Net\Sockets\SocketOptionName.cs (1)
16/// Defines socket option names for the <see cref='System.Net.Sockets.Socket'/> class.
net\System\Net\Sockets\SocketShutdown.cs (1)
12/// Defines constants used by the <see cref='System.Net.Sockets.Socket.Shutdown'/> method.
net\System\Net\Sockets\SocketType.cs (1)
11/// Specifies the type of socket an instance of the <see cref='System.Net.Sockets.Socket'/> class represents.
net\System\Net\Sockets\TCPClient.cs (9)
16/// of abstraction than the <see cref='System.Net.Sockets.Socket'/> class. <see cref='System.Net.Sockets.TcpClient'/> 21Socket m_ClientSocket; 131internal TcpClient(Socket acceptedSocket) { 144public Socket Client { 216Socket ipv6Socket = null; 217Socket ipv4Socket = null; 221if (Socket.OSSupportsIPv4){ 224if (Socket.OSSupportsIPv6){ 476Socket chkClientSocket = Client;
net\System\Net\Sockets\TCPListener.cs (15)
14/// <para>The <see cref='System.Net.Sockets.TcpListener'/> class provide TCP services at a higher level of abstraction than the <see cref='System.Net.Sockets.Socket'/> 21Socket m_ServerSocket; 102public Socket Server { 240public Socket AcceptSocket() { 244Socket socket = m_ServerSocket.Accept(); 258Socket acceptedSocket = m_ServerSocket.Accept(); 280public Socket EndAcceptSocket(IAsyncResult asyncResult){ 289Socket asyncSocket = lazyResult == null ? null : lazyResult.AsyncObject as Socket; 296Socket socket = asyncSocket.EndAccept(asyncResult); 322Socket asyncSocket = lazyResult == null ? null : lazyResult.AsyncObject as Socket; 329Socket socket = asyncSocket.EndAccept(asyncResult); 337public Task<Socket> AcceptSocketAsync() 339return Task<Socket>.Factory.FromAsync(BeginAcceptSocket, EndAcceptSocket, null);
net\System\Net\Sockets\UDPClient.cs (8)
17/// higher abstraction level than the <see cref='System.Net.Sockets.Socket'/> class. <see cref='System.Net.Sockets.UdpClient'/> 25private Socket m_ClientSocket; 167public Socket Client { 272Socket chkClientSocket = Client; 333Socket ipv6Socket = null; 334Socket ipv4Socket = null; 338if (Socket.OSSupportsIPv4){ 341if (Socket.OSSupportsIPv6){
net\System\Net\WebSockets\WebSocketConnectionStream.cs (4)
496internal Socket InnerSocket 576internal Socket GetInnerSocket(bool skipStateCheck) 578Socket returnValue; 770Socket innerSocket;
System.Net (1)
AssemblyInfo.cs (1)
54[assembly: TypeForwardedToAttribute(typeof(System.Net.Sockets.Socket))]
System.Runtime.Remoting (24)
channels\core\corechannel.cs (1)
253AddressFamily addressFamily = (Socket.OSSupportsIPv4) ? AddressFamily.InterNetwork : AddressFamily.InterNetworkV6;
channels\core\socketcache.cs (6)
27internal delegate SocketHandler SocketHandlerFactory(Socket socket, 95private void DisableNagleDelays(Socket socket) 109connectIPv6 = Socket.OSSupportsIPv6 && HasIPv6Address(_addressList); 143Socket socket = new Socket(ipEndPoint.AddressFamily, 157Socket socket = new Socket(family, 403internal SocketHandler CreateSocketHandler(Socket socket, String machineAndPort)
channels\core\socketmanager.cs (3)
31protected Socket NetSocket; // network socket 62public SocketHandler(Socket socket, Stream netStream) 76internal SocketHandler(Socket socket, RequestQueue requestQueue, Stream netStream) : this(socket, netStream)
channels\core\socketstream.cs (2)
26private Socket _socket; 34public SocketStream(Socket socket)
channels\http\httpserverchannel.cs (2)
52private IPAddress _bindToAddr = (Socket.OSSupportsIPv4) ? IPAddress.Any : IPAddress.IPv6Any; // address to bind to. 444Socket socket;
channels\http\httpsocketmanager.cs (1)
39public HttpSocketHandler(Socket socket, RequestQueue requestQueue, Stream stream) : base(socket, requestQueue, stream)
channels\http\httpstreams.cs (1)
509internal HttpServerSocketHandler(Socket socket, RequestQueue requestQueue, Stream stream) : base(socket, requestQueue, stream)
channels\tcp\tcpclientchannel.cs (1)
253Socket socket, SocketCache socketCache, String machinePortAndSid)
channels\tcp\tcpclientsocketmanager.cs (1)
47public TcpClientSocketHandler(Socket socket, String machinePortAndSid, Stream stream, TcpClientTransportSink sink) :
channels\tcp\tcpserverchannel.cs (3)
48private IPAddress _bindToAddr = (Socket.OSSupportsIPv4) ? IPAddress.Any : IPAddress.IPv6Any; // address to bind to. 122if (Socket.OSSupportsIPv4) 381Socket socket = null;
channels\tcp\tcpsocketmanager.cs (2)
37public TcpSocketHandler(Socket socket, Stream stream) : this(socket, null, stream) 41public TcpSocketHandler(Socket socket, RequestQueue requestQueue, Stream stream) :
channels\tcp\tcpstreams.cs (1)
248internal TcpServerSocketHandler(Socket socket, RequestQueue requestQueue, Stream stream) :
System.ServiceModel (38)
System\ServiceModel\Channels\ExclusiveTcpTransportManager.cs (3)
19Socket listenSocket; 252bool useIPv4 = (this.ListenUri.HostNameType != UriHostNameType.IPv6) && Socket.OSSupportsIPv4; 253bool useIPv6 = (this.ListenUri.HostNameType != UriHostNameType.IPv4) && Socket.OSSupportsIPv6;
System\ServiceModel\Channels\PeerIPHelper.cs (2)
25Socket ipv6Socket; 443if (Socket.OSSupportsIPv6)
System\ServiceModel\Channels\PeerUnsafeNativeMethods.cs (1)
67public static ReadOnlyCollection<IPAddress> SortAddresses(Socket socket, IPAddress listenAddress, ReadOnlyCollection<IPAddress> addresses)
System\ServiceModel\Channels\SharedConnectionListener.cs (3)
760Socket socket = new Socket(duplicateContext.SocketInformation); 1055Socket socket = (Socket)connection.GetCoreTransport();
System\ServiceModel\Channels\SocketAsyncEventArgsPool.cs (1)
51Socket socket = socketAsyncEventArgs.AcceptSocket;
System\ServiceModel\Channels\SocketConnection.cs (19)
29Socket socket; 77public SocketConnection(Socket socket, ConnectionBufferPool connectionBufferPool, bool autoBindToCompletionPort) 606void TraceSocketInfo(Socket socket, int traceCode, string srString, string timeoutString) 1576IConnection CreateConnection(Socket socket) 1692Socket socket = null; 1712if (addressFamily == AddressFamily.InterNetworkV6 && !Socket.OSSupportsIPv6) 1764Socket socket = ConnectAsyncResult.End(result); 1768public static void TraceConnectFailure(Socket socket, SocketException socketException, Uri remoteUri, 1789Socket socket; 1867if (addressFamily == AddressFamily.InterNetworkV6 && !Socket.OSSupportsIPv6) 1956public static Socket End(IAsyncResult result) 1976Socket listenSocket; 1982public SocketConnectionListener(Socket listenSocket, ISocketListenerSettings settings, bool useOnlyOverlappedIO) 2024static int GetAcceptBufferSize(Socket listenSocket) 2029bool InternalBeginAccept(Func<Socket, bool> acceptAsyncFunc) 2049Socket socket = AcceptAsyncResult.End(result); 2162Socket socket; 2294bool DoAcceptAsync(Socket listenSocket) 2380public static Socket End(IAsyncResult result)
System\ServiceModel\Channels\TcpChannelListener.cs (9)
182Socket ipv4ListenSocket; 183Socket ipv6ListenSocket; 241internal Socket GetListenSocket(UriHostNameType ipHostNameType) 245Socket result = this.ipv4ListenSocket; 251Socket result = this.ipv6ListenSocket; 312Socket ListenAndBind(IPEndPoint localEndpoint) 314Socket result = new Socket(localEndpoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp); 333bool useIPv4 = Socket.OSSupportsIPv4; 334bool useIPv6 = Socket.OSSupportsIPv6;
System.ServiceModel.Channels (14)
System\ServiceModel\Channels\UdpSocket.cs (6)
21Socket socket; 26public UdpSocket(Socket socket, int interfaceIndex) 281Socket socket; 288public SendToAsyncResult(Socket socket, byte[] buffer, int offset, int size, EndPoint remoteEndPoint, int timeToLive, AsyncCallback callback, object state) 359Socket socket; 361public ReceiveFromAsyncResult(Socket socket, ArraySegment<byte> buffer, EndPoint remoteEndPoint, int messageSize, int timeToLive, AsyncCallback userCallback, object userState) :
System\ServiceModel\Channels\UdpUtility.cs (8)
73ipV4Supported = Socket.OSSupportsIPv4; 74ipV6Supported = Socket.OSSupportsIPv6; 111Socket socket = null; 237ThrowIfNoSocketSupport(Socket.OSSupportsIPv4, Socket.OSSupportsIPv6); 422static void BindSocket(Socket socket, IPEndPoint localEndpoint) 445static void SetPreBindSocketOptions(Socket socket, bool listenMulticast, int receiveBufferSize, short timeToLive, int interfaceIndex, 488static void SetPostBindSocketOptions(Socket socket, bool listenMulticast, IPAddress ipAddress, int interfaceIndex)
System.ServiceModel.Discovery (1)
System\ServiceModel\Discovery\UdpDiscoveryEndpoint.cs (1)
121return Socket.OSSupportsIPv4 ? DefaultIPv4MulticastAddress : DefaultIPv6MulticastAddress;