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

◆ UdpClient() [6/6]

System.Net.Sockets.UdpClient.UdpClient ( string hostname,
int port )
inline

Definition at line 504 of file UdpClient.cs.

505 {
506 if (hostname == null)
507 {
508 throw new ArgumentNullException("hostname");
509 }
511 {
512 throw new ArgumentOutOfRangeException("port");
513 }
514 Connect(hostname, port);
515 }
static bool ValidatePortNumber(int port)

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