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

◆ ConnectAsync() [11/11]

ValueTask System.Net.Sockets.Socket.ConnectAsync ( string host,
int port,
CancellationToken cancellationToken )
inline

Definition at line 4015 of file Socket.cs.

4016 {
4017 if (host == null)
4018 {
4019 throw new ArgumentNullException("host");
4020 }
4021 IPAddress address;
4022 EndPoint remoteEP = (IPAddress.TryParse(host, out address) ? ((EndPoint)new IPEndPoint(address, port)) : ((EndPoint)new DnsEndPoint(host, port)));
4024 }
bool ConnectAsync(SocketAsyncEventArgs e)
Definition Socket.cs:2822

References System.cancellationToken, System.Net.Sockets.Socket.ConnectAsync(), and System.Net.IPAddress.TryParse().