The C++ framework for developing highly scalable, high performance servers on Windows platforms.

CCommandLine Class Reference

Collaboration diagram for CCommandLine:

List of all members.

Public Types

enum  ServerType {
  TCPServer = 0x00000001, TCPClient = 0x00000002, UDPServer = 0x00000004, SupportsPerfCounters = 0x00000010,
  SupportsSendRecvBufSize = 0x00000020, UDPMulticastServer = 0x00000044, SupportsZeroByteRead = 0x00000100, SupportsIOPoolEx = 0x00000400,
  SupportsPageAllocator = 0x00001000, UDPConnectionServer = 0x00020004, DoesNotSupportWelcomeMessage = 0x00100000, SupportsFlowControl = 0x01000000,
  SupportsProcessingDelay = 0x10000000
}
typedef unsigned short Count

Public Member Functions

 CCommandLine (const DWORD argc, const char **argv, const JetByteTools::Core::_tstring &serverName, DWORD type)
 CCommandLine (const CCommandLine &rhs)
virtual ~CCommandLine ()
CCommandLineoperator= (const CCommandLine &rhs)
bool Parse ()
JetByteTools::Core::_tstring EventNamePrefix () const
JetByteTools::Core::_tstring Server () const
JetByteTools::Socket::CAddressIPv4::Port Port () const
bool DisplayDebug () const
Count NumberOfIOThreads () const
JetByteTools::Socket::ListenBacklog ListenBacklog () const
Count SocketPoolSize () const
JetByteTools::Socket::PerSocketBufferPoolingLimit MaxBuffersPooledPerSocket () const
JetByteTools::Socket::ConsecutiveSocketOperations MaxConsecutiveOperationsOnOneSocket () const
JetByteTools::IO::CBufferAllocator::BufferCount BufferPoolSize () const
JetByteTools::IO::IBuffer::BufferSize BufferSize () const
bool NoWelcomeMessage () const
Count MaxConnections () const
bool RegisterCounters () const
bool UnRegisterCounters () const
bool HasMulticastAddress () const
JetByteTools::Core::_tstring MulticastAddress () const
unsigned long RecvBufferSize () const
unsigned long SendBufferSize () const
JetByteTools::Socket::ZeroByteReadConfiguration GetZeroByteReadConfiguration () const
JetByteTools::IO::CBufferAllocator::AllocationFlags GetAllocationFlags () const
JetByteTools::Milliseconds ConnectionTimeout () const
JetByteTools::Socket::CFlowControlStreamSocketConnectionFilter::BufferCount MaxBuffers () const
JetByteTools::Socket::CFlowControlStreamSocketConnectionFilter::PendingWriteCount MaxPendingWrites () const
JetByteTools::Socket::CFlowControlStreamSocketConnectionFilter::Percentage NotificationPercentageStepSize () const
JetByteTools::Milliseconds ProcessingDelay () const
DWORD NumberOfEntriesPerCall () const
void ShowHelp (const JetByteTools::Core::_tstring &message)

Static Protected Member Functions

static Count StringToCount (const JetByteTools::Core::_tstring &stringValue)
static unsigned long StringToUnsignedLong (const JetByteTools::Core::_tstring &stringValue)

Protected Attributes

const DWORD m_argc
const char ** m_argv
JetByteTools::Core::CCommandLine m_parser


Member Typedef Documentation

typedef unsigned short Count


Member Enumeration Documentation

enum ServerType

Enumerator:
TCPServer 
TCPClient 
UDPServer 
SupportsPerfCounters 
SupportsSendRecvBufSize 
UDPMulticastServer 
SupportsZeroByteRead 
SupportsIOPoolEx 
SupportsPageAllocator 
UDPConnectionServer 
DoesNotSupportWelcomeMessage 
SupportsFlowControl 
SupportsProcessingDelay 


Constructor & Destructor Documentation

CCommandLine ( const DWORD  argc,
const char **  argv,
const JetByteTools::Core::_tstring serverName,
DWORD  type 
)

CCommandLine ( const CCommandLine rhs  ) 

virtual ~CCommandLine (  )  [virtual]


Member Function Documentation

CCommandLine& operator= ( const CCommandLine rhs  ) 

bool Parse (  ) 

_tstring EventNamePrefix (  )  const

_tstring Server (  )  const

CAddressIPv4::Port Port (  )  const

bool DisplayDebug (  )  const

CCommandLine::Count NumberOfIOThreads (  )  const

JetByteTools::Socket::ListenBacklog ListenBacklog (  )  const

CCommandLine::Count SocketPoolSize (  )  const

PerSocketBufferPoolingLimit MaxBuffersPooledPerSocket (  )  const

ConsecutiveSocketOperations MaxConsecutiveOperationsOnOneSocket (  )  const

IBuffer::BufferSize BufferSize (  )  const

bool NoWelcomeMessage (  )  const

CCommandLine::Count MaxConnections (  )  const

bool RegisterCounters (  )  const

bool UnRegisterCounters (  )  const

bool HasMulticastAddress (  )  const

_tstring MulticastAddress (  )  const

unsigned long RecvBufferSize (  )  const

unsigned long SendBufferSize (  )  const

ZeroByteReadConfiguration GetZeroByteReadConfiguration (  )  const

JetByteTools::IO::CBufferAllocator::AllocationFlags GetAllocationFlags (  )  const

Milliseconds ConnectionTimeout (  )  const

CFlowControlStreamSocketConnectionFilter::BufferCount MaxBuffers (  )  const

CFlowControlStreamSocketConnectionFilter::PendingWriteCount MaxPendingWrites (  )  const

CFlowControlStreamSocketConnectionFilter::Percentage NotificationPercentageStepSize (  )  const

Milliseconds ProcessingDelay (  )  const

DWORD NumberOfEntriesPerCall (  )  const

void ShowHelp ( const JetByteTools::Core::_tstring message  ) 

static Count StringToCount ( const JetByteTools::Core::_tstring stringValue  )  [static, protected]

static unsigned long StringToUnsignedLong ( const JetByteTools::Core::_tstring stringValue  )  [static, protected]


Member Data Documentation

const DWORD m_argc [protected]

const char** m_argv [protected]


Generated on Sun Sep 12 19:06:59 2021 for The Server Framework - v7.4 by doxygen 1.5.3