Mono Class Library: System.Net.Sockets.TcpClient Overview | Members

System.Net.Sockets.TcpClient.Connect Method

Resolves a fully qualified domain name to an IP address and connects to it on a specified port.

public void Connect (string hostname, int port)

Parameters

hostname
The hostname, e.g. "www.myelin.co.nz".
port
The port number to connect to, e.g. 80 for HTTP.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0