Constructs a new TcpClient and connects to a specified host on a specified port. A quick way to set up a network connection.
- hostname
- The host to connect to, e.g. "192.168.0.201" or "www.myelin.co.nz"
- port
- The port to connect to, e.g. 80 for HTTP
Documentation for this section has not yet been entered.
Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0