TcpNetworkClientConnect Method (EndPoint, Boolean) |
Initiates TCP connect to remote endpoint.
Namespace: StreamCoders.NetworkAssembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax public bool Connect(
EndPoint remoteEp,
bool synchronous
)
Public Function Connect (
remoteEp As EndPoint,
synchronous As Boolean
) As Boolean
public:
bool Connect(
EndPoint^ remoteEp,
bool synchronous
)
member Connect :
remoteEp : EndPoint *
synchronous : bool -> bool
Parameters
- remoteEp
- Type: System.NetEndPoint
Remote endpoint. - synchronous
- Type: SystemBoolean
if true the method waits for the connection to be established. Otherwise the function
returns immediately and OnConnect event is called.
Return Value
Type:
Boolean
Returns true if connection is established, otherwise false.
See Also