AMPS C# Client  5.3.3.4
AMPS C# Client for .NET
AMPS.Client.TCPTransportImpl Class Reference
+ Inheritance diagram for AMPS.Client.TCPTransportImpl:

Classes

class  TCPReaderThread
 

Public Member Functions

delegate void ExceptionListener (Exception e)
 
 TCPTransportImpl (Protocol messageType_, Properties properties_)
 
void setTransportFilter (TransportFilter filter_)
 
void setReadTimeout (int readTimeoutMillis_)
 
void setMessageHandler (MessageHandler h)
 
void setDisconnectHandler (TransportDisconnectHandler h)
 
void setExceptionListener (ExceptionListener e)
 
void setThreadCreatedHandler (ThreadCreatedHandler handler)
 
void setIdleAction (Action idleAction)
 
void connect (Uri addr)
 
void disconnect ()
 
void send (MemoryStream buf)
 
Socket socket ()
 
long writeQueueSize ()
 
long readQueueSize ()
 
long flush ()
 
long flush (long timeout)
 
virtual TCPTransport createTransport (Protocol messageType, TCPTransportImpl impl)
 
virtual void handleCloseEvent (int failedVersion_, String message, Exception exception)
 

Public Attributes

object _lock = new object()
 
volatile int _connectionVersion = 0
 

Protected Member Functions

void broadcastException (Exception e)
 
virtual IPAddress resolveAddress (Uri addr)
 
virtual void createSocket ()
 
virtual void createStream (Uri uri)
 
virtual void connectSocket (Uri addr)
 
virtual void applySocketProperty (String propertyName, String propertyValue)
 Applies a socket property to self. Override this to add custom properties to your transport or intercept the stock ones. More...
 

Protected Attributes

Uri _addr
 
IPAddress _resolvedAddr
 
Stream _socketStream = null
 
Socket _socket = null
 

Member Function Documentation

◆ applySocketProperty()

virtual void AMPS.Client.TCPTransportImpl.applySocketProperty ( String  propertyName,
String  propertyValue 
)
inlineprotectedvirtual

Applies a socket property to self. Override this to add custom properties to your transport or intercept the stock ones.

Parameters
propertyNameThe property name from the URI.
propertyValueThe property value.

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