Edytuj

Udostępnij za pośrednictwem


CFSocket.Connect Method

Definition

Overloads

Connect(IPEndPoint, Double)

Connects the socket to the specified endpoint.

Connect(IPAddress, Int32, Double)

Connects the socket to the specified IP address and port.

Connect(IPEndPoint, Double)

Connects the socket to the specified endpoint.

public void Connect (System.Net.IPEndPoint endpoint, double timeout);
member this.Connect : System.Net.IPEndPoint * double -> unit

Parameters

endpoint
IPEndPoint
timeout
Double

Time to wait for the operation to complete.   If the value is negative, no wait takes place, and instead the operation takes place in the background.

Remarks

This method throws a CFSocketException if the timeout expires before being able to complete the operation.

Applies to

Connect(IPAddress, Int32, Double)

Connects the socket to the specified IP address and port.

public void Connect (System.Net.IPAddress address, int port, double timeout);
member this.Connect : System.Net.IPAddress * int * double -> unit

Parameters

address
IPAddress
port
Int32
timeout
Double

Time to wait for the operation to complete.   If the value is negative, no wait takes place, and instead the operation takes place in the background.

Remarks

This method throws a CFSocketException if the timeout expires before being able to complete the operation.

Applies to