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

◆ TcpClient() [3/5]

System.Net.Sockets.TcpClient.TcpClient ( IPEndPoint localEP)
inline

Definition at line 162 of file TcpClient.cs.

163 {
164 if (System.Net.NetEventSource.Log.IsEnabled())
165 {
166 System.Net.NetEventSource.Info(this, localEP, ".ctor");
167 }
168 if (localEP == null)
169 {
170 throw new ArgumentNullException("localEP");
171 }
172 _family = localEP.AddressFamily;
174 _clientSocket.Bind(localEP);
175 }
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)
void Bind(EndPoint localEP)
Definition Socket.cs:1172

References System.Net.Sockets.TcpClient._clientSocket, System.Net.Sockets.TcpClient._family, System.Net.IPEndPoint.AddressFamily, System.Net.Sockets.Socket.Bind(), System.Net.NetEventSource.Info(), System.Net.Sockets.TcpClient.InitializeClientSocket(), and System.Net.NetEventSource.Log.