52 references to ProtocolType
System (42)
net\System\Net\_AutoWebProxyScriptHelper.cs (1)
675
Socket s = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream,
ProtocolType
.Tcp);
net\System\Net\_SafeNetHandles.cs (4)
2490
internal static SafeCloseSocket CreateWSASocket(AddressFamily addressFamily, SocketType socketType,
ProtocolType
protocolType)
2718
InnerSafeCloseSocket result = UnsafeNclNativeMethods.OSSOCK.WSASocket((AddressFamily) (-1),(SocketType) (-1),(
ProtocolType
) (-1), pinnedBuffer, 0, SocketConstructorFlags.WSA_FLAG_OVERLAPPED);
2725
internal static InnerSafeCloseSocket CreateWSASocket(AddressFamily addressFamily, SocketType socketType,
ProtocolType
protocolType)
2758
internal static SafeCloseSocketAndEvent CreateWSASocketWithEvent(AddressFamily addressFamily, SocketType socketType,
ProtocolType
protocolType, bool autoReset, bool signaled){
net\System\Net\Internal.cs (2)
559
ipv4Socket = SafeCloseSocketAndEvent.CreateWSASocketWithEvent(AddressFamily.InterNetwork, SocketType.Dgram, (
ProtocolType
)0, true, false);
565
ipv6Socket = SafeCloseSocketAndEvent.CreateWSASocketWithEvent(AddressFamily.InterNetworkV6, SocketType.Dgram, (
ProtocolType
)0, true, false);
net\System\Net\NetworkInformation\NetworkAddressChange.cs (2)
259
s_ipv4Socket = SafeCloseSocketAndEvent.CreateWSASocketWithEvent(AddressFamily.InterNetwork, SocketType.Dgram, (
ProtocolType
)0, true, false);
266
s_ipv6Socket = SafeCloseSocketAndEvent.CreateWSASocketWithEvent(AddressFamily.InterNetworkV6, SocketType.Dgram, (
ProtocolType
)0, true, false);
net\System\Net\ServicePoint.cs (2)
246
socket = new Socket(AddressFamily.InterNetwork,SocketType.Stream,
ProtocolType
.Tcp);
250
socket6 = new Socket(AddressFamily.InterNetworkV6,SocketType.Stream,
ProtocolType
.Tcp);
net\System\Net\Sockets\_DynamicWinsockMethods.cs (3)
19
public static DynamicWinsockMethods GetMethods(AddressFamily addressFamily, SocketType socketType,
ProtocolType
protocolType)
42
private
ProtocolType
protocolType;
55
private DynamicWinsockMethods(AddressFamily addressFamily, SocketType socketType,
ProtocolType
protocolType)
net\System\Net\Sockets\_MultipleConnectAsync.cs (1)
423
public MultipleSocketMultipleConnectAsync(SocketType socketType,
ProtocolType
protocolType)
net\System\Net\Sockets\Socket.cs (11)
67
private
ProtocolType
protocolType;
131
public Socket(SocketType socketType,
ProtocolType
protocolType)
141
public Socket(AddressFamily addressFamily, SocketType socketType,
ProtocolType
protocolType) {
188
protocolType = (
ProtocolType
)protocolInfo.iProtocol;
284
protocolType = Sockets.
ProtocolType
.Unknown;
610
public
ProtocolType
ProtocolType {
5815
protocolType==Sockets.
ProtocolType
.Tcp ?
5817
protocolType==Sockets.
ProtocolType
.Udp ?
5997
ProtocolType
.IP,
6013
ProtocolType
.IP,
7867
public static bool ConnectAsync(SocketType socketType,
ProtocolType
protocolType, SocketAsyncEventArgs e) {
net\System\Net\Sockets\SocketOptionLevel.cs (4)
34
IP =
ProtocolType
.IP,
41
IPv6 =
ProtocolType
.IPv6,
48
Tcp =
ProtocolType
.Tcp,
56
Udp =
ProtocolType
.Udp,
net\System\Net\Sockets\TCPClient.cs (3)
222
ipv4Socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream,
ProtocolType
.Tcp);
225
ipv6Socket = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream,
ProtocolType
.Tcp);
608
Client = new Socket(m_Family, SocketType.Stream,
ProtocolType
.Tcp);
net\System\Net\Sockets\TCPListener.cs (4)
39
m_ServerSocket = new Socket(m_ServerSocketEP.AddressFamily, SocketType.Stream,
ProtocolType
.Tcp);
58
m_ServerSocket = new Socket(m_ServerSocketEP.AddressFamily, SocketType.Stream,
ProtocolType
.Tcp);
79
m_ServerSocket = new Socket(m_ServerSocketEP.AddressFamily, SocketType.Stream,
ProtocolType
.Tcp);
213
m_ServerSocket = new Socket(m_ServerSocketEP.AddressFamily, SocketType.Stream,
ProtocolType
.Tcp);
net\System\Net\Sockets\UDPClient.cs (3)
339
ipv4Socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram,
ProtocolType
.Udp);
342
ipv6Socket = new Socket(AddressFamily.InterNetworkV6, SocketType.Dgram,
ProtocolType
.Udp);
1044
Client = new Socket(m_Family, SocketType.Dgram,
ProtocolType
.Udp);
net\System\Net\UnsafeNativeMethods.cs (2)
1024
[In]
ProtocolType
protocolType,
1034
[In]
ProtocolType
protocolType,
System.Net (1)
AssemblyInfo.cs (1)
53
[assembly: TypeForwardedToAttribute(typeof(System.Net.Sockets.
ProtocolType
))]
System.Runtime.Remoting (2)
channels\core\socketcache.cs (2)
145
ProtocolType
.Tcp);
159
ProtocolType
.Tcp);
System.ServiceModel (6)
System\ServiceModel\Channels\PeerIPHelper.cs (1)
445
this.ipv6Socket = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream,
ProtocolType
.IP);
System\ServiceModel\Channels\PnrpPeerResolver.cs (1)
1898
registerQuery.CsAddrInfos[i].iProtocol = (int)
ProtocolType
.Tcp;
System\ServiceModel\Channels\SocketConnection.cs (3)
1721
socket = new Socket(addressFamily, SocketType.Stream,
ProtocolType
.Tcp);
1877
this.socket = new Socket(addressFamily, SocketType.Stream,
ProtocolType
.Tcp);
2105
this.listenSocket = new Socket(localEndpoint.AddressFamily, SocketType.Stream,
ProtocolType
.Tcp);
System\ServiceModel\Channels\TcpChannelListener.cs (1)
314
Socket result = new Socket(localEndpoint.AddressFamily, SocketType.Stream,
ProtocolType
.Tcp);
System.ServiceModel.Channels (1)
System\ServiceModel\Channels\UdpUtility.cs (1)
127
socket = new Socket(localEndpoint.AddressFamily, SocketType.Dgram,
ProtocolType
.Udp);