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

◆ Bind()

void System.Net.Sockets.Socket.Bind ( EndPoint localEP)
inline

Definition at line 1172 of file Socket.cs.

1173 {
1174 if (System.Net.NetEventSource.Log.IsEnabled())
1175 {
1176 System.Net.NetEventSource.Info(this, localEP, "Bind");
1177 }
1179 if (localEP == null)
1180 {
1181 throw new ArgumentNullException("localEP");
1182 }
1183 if (System.Net.NetEventSource.Log.IsEnabled())
1184 {
1185 System.Net.NetEventSource.Info(this, $"localEP:{localEP}", "Bind");
1186 }
1188 DoBind(localEP, socketAddress);
1189 }
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)
System.Net.Internals.SocketAddress Serialize(ref EndPoint remoteEP)
Definition Socket.cs:3225
void DoBind(EndPoint endPointSnapshot, System.Net.Internals.SocketAddress socketAddress)
Definition Socket.cs:1191

References System.Net.Sockets.Socket.DoBind(), System.Net.NetEventSource.Info(), System.Net.NetEventSource.Log, System.Net.Sockets.Socket.Serialize(), and System.Net.Sockets.Socket.ThrowIfDisposed().

Referenced by System.Net.Sockets.TcpClient.TcpClient(), System.Net.Sockets.UdpClient.UdpClient(), System.Net.Sockets.UdpClient.UdpClient(), System.Net.FtpControlStream.CreateFtpListenerSocket(), System.Net.FtpControlStream.QueueOrCreateDataConection(), and System.Net.Sockets.TcpListener.Start().