Server
API Reference Guide
Product Documentation:

Rogue Wave Server
Documentation Home
List of all members | Public Member Functions | Static Public Attributes
IlsTime Class Reference

This class is used to set a timeout that determines how long a view server will wait for a request. More...

#include <ilserver/ttime.h>

Inherits timeval.

Public Member Functions

 IlsTime (long sec, long usec)
 This constructor creates a time value of sec seconds and usec microseconds.
 
long getSec () const
 Returns the number of seconds contained in the time value.
 
long getUSec () const
 Returns the number of microseconds contained in the time value.
 
friend ILSIMPORTFUNCTION (IlsTime) operator+(const IlsTime &t1
 Adds t1 to t2 and returns the time value.
 
friend ILSIMPORTFUNCTION (IlsTime) operator-(const IlsTime &t1
 Subtracts t2 from t1 and returns the time value.
 
IlsBoolean isNull ()
 Returns IlsTrue if the time value is null (that is, 0 seconds, 0 microseconds).
 
IlsBoolean operator< (const IlsTime &t) const
 Returns IlsTrue if the time value is anterior to t.
 
IlsBoolean operator> (const IlsTime &t) const
 Returns IlsTrue if the time value is posterior to t.
 

Static Public Attributes

static IlsTimeInfinite
 Represents an infinite time value. More...
 
static IlsTimeNull
 Represents a null time value.
 
static IlsTimeTimeout
 Represents a default timeout. More...
 

Detailed Description

This class is used to set a timeout that determines how long a view server will wait for a request.

Library: server
and mvcomp

See also
IlsMvServer.

Member Data Documentation

◆ Infinite

IlsTime* IlsTime::Infinite
static

Represents an infinite time value.

Its value is a null pointer.

◆ Timeout

IlsTime* IlsTime::Timeout
static

Represents a default timeout.

The default value of the timeout is 20 seconds.