Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cUnitTestTelnetStream Class Reference

#include <cNetServer.Tests.h>

Inheritance diagram for GrayLib::cUnitTestTelnetStream:
Gray::cRefBase GrayLib::cProtocolStream IUnknown

Public Member Functions

 cUnitTestTelnetStream (cUnitTestTelnetFactory *pFactory, IUnkObject *pServerConnection, cStreamInput *pStreamInp, cStreamOutput *pStreamOut)
 
virtual HRESULT ProcessStreamPacket () override
 
 IUNKNOWN_DISAMBIG (cRefBase)
 
- Public Member Functions inherited from Gray::cRefBase
 cRefBase (int iRefCount=0) noexcept
 
virtual ~cRefBase ()
 
int get_RefCount () const noexcept
 
HASHCODE_t get_HashCode () const noexcept
 
 STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept
 
virtual void onFinalRelease ()
 
bool isValidObj () const noexcept
 
 STDMETHOD_ (ULONG, AddRef)(void) override
 
 STDMETHOD_ (ULONG, Release)(void) override
 
STDMETHOD() QueryInterface (const IID &riid, void __RPC_FAR *__RPC_FAR *ppvObject) override
 
void IncRefCount ()
 
void DecRefCount ()
 
bool isStaticConstruct () const noexcept
 
void StaticConstruct ()
 
void StaticDestruct ()
 
bool isDestructing () noexcept
 
void SetDestructing ()
 
- Public Member Functions inherited from GrayLib::cProtocolStream
 cProtocolStream (IProtocolFactory *pProtocolFactory, IUnkObject *pServerConnection, cStreamInput *pStreamInp, cStreamOutput *pStreamOut)
 
virtual ~cProtocolStream ()
 
HASHCODE_t get_HashCode () const noexcept
 
 STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept override
 
 STDMETHOD_ (cString, get_Name)() const override
 
 STDMETHOD_ (cStringA, get_SymName)() const override
 
bool isConnected () const
 
cStreamInputget_StreamInp () const
 
cStreamOutputget_StreamOut () const
 
virtual size_t get_ProtocolMaxMessageSize () const
 
virtual HRESULT DisposeThis ()
 
virtual HRESULT OnTickStream ()
 

Static Public Attributes

static const char * k_pszMsgStop = "TelnetStop"
 

Additional Inherited Members

- Public Attributes inherited from GrayLib::cProtocolStream
IProtocolFactory *const m_pProtocolFactory
 What IProtocolFactory produced this? More...
 
IUnkObject *const m_pServerConnection
 the cNetServerConnection or other top level parent for this protocol. More...
 
HASHCODE_t const m_nHashCode
 the m_pClient->get_HashCode() id for this client connection/stream. More...
 
- Protected Attributes inherited from GrayLib::cProtocolStream
cStreamInputm_pStreamInp
 for use with ProcessStreamPacket() More...
 
cStreamOutputm_pStreamOut
 TX responses back to the remote client go here. (e.g. cNetServerConnection->cNetStream) More...
 
cString m_sName
 a user readable name. Usually the IP address or reverse DNS lookup. can be upgraded as lookup or login becomes avail. m_pClient->get_Name() More...
 

Detailed Description

a unit testing framework for a cNetServer protocol. Just a simple telnet terminal server side.

Constructor & Destructor Documentation

◆ cUnitTestTelnetStream()

GrayLib::cUnitTestTelnetStream::cUnitTestTelnetStream ( cUnitTestTelnetFactory pFactory,
IUnkObject *  pServerConnection,
cStreamInput pStreamInp,
cStreamOutput pStreamOut 
)

Member Function Documentation

◆ IUNKNOWN_DISAMBIG()

GrayLib::cUnitTestTelnetStream::IUNKNOWN_DISAMBIG ( cRefBase  )

◆ ProcessStreamPacket()

HRESULT GrayLib::cUnitTestTelnetStream::ProcessStreamPacket ( )
overridevirtual

Called periodically to process queued incoming data. if any. Get a single string up to

Returns
S_OK = processed a single message. HRESULT_WIN32_C(ERROR_IO_INCOMPLETE) = incomplete but not fatal.

Reimplemented from GrayLib::cProtocolStream.

Member Data Documentation

◆ k_pszMsgStop

const char * GrayLib::cUnitTestTelnetStream::k_pszMsgStop = "TelnetStop"
static

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