AMPS C# Client  5.3.3.4
AMPS C# Client for .NET
All Classes Namespaces Functions Variables Enumerations Properties Events
AMPS.Client.TCPSTransport Class Reference

Implements a secure transport for communicating with AMPS over a SslStream. More...

+ Inheritance diagram for AMPS.Client.TCPSTransport:

Public Member Functions

 TCPSTransport (Protocol protocol, TCPSTransportImpl impl)
 Construct a TCPSTransport object for the given Protocol. More...
 
 TCPSTransport (Protocol protocol, Properties properties)
 Construct a TCPSTransport object for the given Protocol. More...
 
- Public Member Functions inherited from AMPS.Client.TCPTransport
 TCPTransport (Protocol msgType, Properties properties)
 
 TCPTransport (Protocol msgType, TCPTransportImpl impl)
 
void setIdleAction (Action idleAction)
 
void setMessageHandler (MessageHandler ml)
 
void setDisconnectHandler (TransportDisconnectHandler dh)
 
void setExceptionListener (TCPTransportImpl.ExceptionListener exceptionListener)
 
void setThreadCreatedHandler (ThreadCreatedHandler handler)
 
void setTransportFilter (TransportFilter filter_)
 Sets a TransportFilter that filters raw bytes bfeore send and after receive. More...
 
void setReadTimeout (int readTimeoutMillis_)
 
void connect (Uri uri)
 Connect to an AMPS server. More...
 
void close ()
 
void disconnect ()
 
void handleCloseEvent (int failedVersion, String message, Exception exception)
 
void sendWithoutRetry (Message message)
 
void send (Message message)
 
Message allocateMessage ()
 
long writeQueueSize ()
 
long readQueueSize ()
 
long flush ()
 
long flush (long timeout)
 
Socket socket ()
 
int getVersion ()
 

Protected Member Functions

override void createImpl ()
 

Properties

static RemoteCertificateValidationCallback RemoteCertificateValidationCallback [get, set]
 Gets or sets the callback delegate used by SslStream to validate the remote certificate from AMPS.

See also
SslStream.RemoteCertificate
More...
 
static SslProtocols EnabledSslProtocols [get, set]
 Gets or sets the enabled SSL protocols used for connecting to AMPS.

See also
SslStream.SslProtocol
More...
 
static bool CheckCertificateRevocation [get, set]
 Gets or sets whether certificate revocation should be checked.

See also
SslStream.CheckCertRevocationStatus
More...
 

Additional Inherited Members

- Static Public Member Functions inherited from AMPS.Client.TCPTransport
static TCPTransport createTransport (Protocol messageType, TCPTransportImpl impl)
 
static void setDefaultConnectTimeout (int defaultConnectTimeoutMillis_)
 Sets the default connect timeout used for new connections. More...
 
static int getDefaultConnectTimeout ()
 Returns the default connect timeout used for new connections. More...
 
- Protected Attributes inherited from AMPS.Client.TCPTransport
TCPTransportImpl impl = null
 
Protocol protocol = null
 
Uri uri = null
 
object sendLock = new object()
 
MemoryStream sendBuffer = new MemoryStream(4096)
 
Properties properties = null
 
- Static Protected Attributes inherited from AMPS.Client.TCPTransport
static int _defaultConnectTimeout = 0
 

Detailed Description

Implements a secure transport for communicating with AMPS over a SslStream.

System.Net.Security.SslStream

Constructor & Destructor Documentation

◆ TCPSTransport() [1/2]

AMPS.Client.TCPSTransport.TCPSTransport ( Protocol  protocol,
TCPSTransportImpl  impl 
)
inline

Construct a TCPSTransport object for the given Protocol.

Parameters
protocolThe protocol for communcating with AMPS.

◆ TCPSTransport() [2/2]

AMPS.Client.TCPSTransport.TCPSTransport ( Protocol  protocol,
Properties  properties 
)
inline

Construct a TCPSTransport object for the given Protocol.

Parameters
protocolThe protocol for communicating with AMPS.
propertiesCustom properties used by the underlying TCP transport.

Property Documentation

◆ CheckCertificateRevocation

bool AMPS.Client.TCPSTransport.CheckCertificateRevocation
staticgetset

Gets or sets whether certificate revocation should be checked.

See also
SslStream.CheckCertRevocationStatus

◆ EnabledSslProtocols

SslProtocols AMPS.Client.TCPSTransport.EnabledSslProtocols
staticgetset

Gets or sets the enabled SSL protocols used for connecting to AMPS.

See also
SslStream.SslProtocol

◆ RemoteCertificateValidationCallback

RemoteCertificateValidationCallback AMPS.Client.TCPSTransport.RemoteCertificateValidationCallback
staticgetset

Gets or sets the callback delegate used by SslStream to validate the remote certificate from AMPS.

See also
SslStream.RemoteCertificate


The documentation for this class was generated from the following file: