Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Socket() [2/5]

System.Net.Sockets.Socket.Socket ( AddressFamily addressFamily,
SocketType socketType,
ProtocolType protocolType )
inline

Definition at line 1035 of file Socket.cs.

1036 {
1037 if (System.Net.NetEventSource.Log.IsEnabled())
1038 {
1039 System.Net.NetEventSource.Info(this, addressFamily, ".ctor");
1040 }
1041 SocketError socketError = SocketPal.CreateSocket(addressFamily, socketType, protocolType, out _handle);
1042 if (socketError != 0)
1043 {
1044 throw new SocketException((int)socketError);
1045 }
1049 }
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)
SafeSocketHandle _handle
Definition Socket.cs:533
AddressFamily _addressFamily
Definition Socket.cs:555
ProtocolType _protocolType
Definition Socket.cs:559

References System.Net.Sockets.Socket._addressFamily, System.Net.Sockets.Socket._handle, System.Net.Sockets.Socket._protocolType, System.Net.Sockets.Socket._socketType, System.Net.Sockets.SocketPal.CreateSocket(), System.Net.NetEventSource.Info(), and System.Net.NetEventSource.Log.