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

◆ Connect() [1/3]

void System.Net.Sockets.UdpClient.Connect ( IPAddress addr,
int port )
inline

Definition at line 613 of file UdpClient.cs.

614 {
616 if (addr == null)
617 {
618 throw new ArgumentNullException("addr");
619 }
621 {
622 throw new ArgumentOutOfRangeException("port");
623 }
624 IPEndPoint endPoint = new IPEndPoint(addr, port);
625 Connect(endPoint);
626 }
static bool ValidatePortNumber(int port)

References System.Net.Sockets.Connect, System.Net.Sockets.UdpClient.ThrowIfDisposed(), and System.Net.TcpValidationHelpers.ValidatePortNumber().