Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

TlsServerSocket.Connect Method

Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9147)

Connect(EndPoint)

Establishes a connection to a remote device. Inherited from TlsSocket.

Declaration
public void Connect(EndPoint remoteEP)
Parameters
Type Name Description
EndPoint remoteEP

An EndPoint that represents the remote device.

Implements
ISocket.Connect(EndPoint)
Remarks

The Connect method establishes a network connection to a device identified by the remoteEP parameter. Once the connection has been made, you can send data to the remote device with the Send method, or receive data from the remote device with the Receive method.

Connect(String, Int32)

Establishes a connection to a remote device. Inherited from TlsSocket.

Declaration
public void Connect(string serverName, int serverPort)
Parameters
Type Name Description
String serverName

The hostname (or IP address) of the remote device.

Int32 serverPort

The port number associated with the hostname.

Implements
ISocket.Connect(String, Int32)
Remarks

The Connect method establishes a network connection to a host identified by the serverName and serverPort parameters. Once the connection has been made, you can send data to the remote device with the Send method, or receive data from the remote device with the Receive method.

In This Article
  • Connect(EndPoint)
  • Connect(String, Int32)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies