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

◆ Connect() [1/4]

void System.Net.Sockets.TcpClient.Connect ( IPAddress address,
int port )
inline

Definition at line 284 of file TcpClient.cs.

285 {
287 if (address == null)
288 {
289 throw new ArgumentNullException("address");
290 }
292 {
293 throw new ArgumentOutOfRangeException("port");
294 }
295 IPEndPoint remoteEP = new IPEndPoint(address, port);
296 Connect(remoteEP);
297 }
static bool ValidatePortNumber(int port)

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