Establishes a connection to a remote device and optionally negotiates a secure transport protocol.
The remoteEP parameter is a null reference (Nothing in Visual Basic). An operating system error occurs while accessing the . The SecureSocket has been closed. The security negotiation failed.