NVIDIA Iray API — software examples nvidia_logo_transpbg.gif Up
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Request_handler Class Reference
Inheritance diagram for Request_handler:
mi::base::Interface_implement< mi::http::IRequest_handler > mi::base::Interface_implement< mi::http::IRequest_handler > mi::http::IRequest_handler mi::http::IRequest_handler mi::base::Interface_declare< 0x8747d0dd, 0x1e27, 0x4413, 0xa0, 0xd4, 0x07, 0x60, 0x8f, 0xed, 0xfc, 0xf9 > mi::base::Interface_declare< 0x8747d0dd, 0x1e27, 0x4413, 0xa0, 0xd4, 0x07, 0x60, 0x8f, 0xed, 0xfc, 0xf9 > mi::base::IInterface mi::base::IInterface

Public Member Functions

 Request_handler (mi::neuraylib::IBuffer *buffer)
 
bool handle (mi::http::IConnection *connection)
 Handles a request coming in on a connection. More...
 
 Request_handler (const char *swf_file)
 
bool handle (mi::http::IConnection *connection)
 Handles a request coming in on a connection. More...
 
- Public Member Functions inherited from mi::base::Interface_implement< mi::http::IRequest_handler >
 Interface_implement (Uint32 initial=1)
 Constructor. More...
 
 Interface_implement (const Interface_implement< mi::http::IRequest_handler > &other)
 Copy constructor. More...
 
Interface_implement
< mi::http::IRequest_handler > & 
operator= (const Interface_implement< mi::http::IRequest_handler > &other)
 Assignment operator. More...
 
virtual Uint32 retain () const
 Increments the reference count. More...
 
virtual Uint32 release () const
 Decrements the reference count. More...
 
virtual const IInterfaceget_interface (const Uuid &interface_id) const
 Acquires a const interface. More...
 
virtual IInterfaceget_interface (const Uuid &interface_id)
 Acquires a mutable interface. More...
 
Uuid get_iid () const
 Returns the interface ID of the most derived interface. More...
 

Additional Inherited Members

- Public Types inherited from mi::base::Interface_declare< 0x8747d0dd, 0x1e27, 0x4413, 0xa0, 0xd4, 0x07, 0x60, 0x8f, 0xed, 0xfc, 0xf9 >
typedef Interface_declare< id1,
id2, id3, id4, id5, id6, id7,
id8, id9, id10, id11,
IInterface
Self
 Own type. More...
 
typedef Uuid_t< id1, id2, id3,
id4, id5, id6, id7, id8, id9,
id10, id11 > 
IID
 Declares the interface ID (IID) of this interface. More...
 
- Static Public Member Functions inherited from mi::base::Interface_declare< 0x8747d0dd, 0x1e27, 0x4413, 0xa0, 0xd4, 0x07, 0x60, 0x8f, 0xed, 0xfc, 0xf9 >
static bool compare_iid (const Uuid &iid)
 Compares the interface ID iid against the interface ID of this interface and of its ancestors. More...
 
- Protected Member Functions inherited from mi::base::Interface_implement< mi::http::IRequest_handler >
Atom32refcount () const
 Get the current refcount. More...
 
virtual ~Interface_implement ()
 
- Static Protected Member Functions inherited from mi::base::Interface_declare< 0x8747d0dd, 0x1e27, 0x4413, 0xa0, 0xd4, 0x07, 0x60, 0x8f, 0xed, 0xfc, 0xf9 >
static const IInterfaceget_interface_static (const IInterface *iinterface, const Uuid &interface_id)
 
static IInterfaceget_interface_static (IInterface *iinterface, const Uuid &interface_id)
 

Detailed Description

Definition at line 27 of file example_http_server.cpp.

Constructor & Destructor Documentation

Request_handler::Request_handler ( mi::neuraylib::IBuffer buffer)
inline

Definition at line 31 of file example_http_server.cpp.

Request_handler::Request_handler ( const char *  swf_file)
inline

Definition at line 63 of file example_rtmp_server.cpp.

Member Function Documentation

bool Request_handler::handle ( mi::http::IConnection connection)
inlinevirtual

Handles a request coming in on a connection.

Returns true, if the request was was completely handled, i.e., no more handlers should be called. Returns false, if the request was not completely handled, i.e., the subsequent handlers should be called. In the latter case no calls to mi::http::IConnection::print() or mi::http::IConnection::enqueue() must have been used on the connection.

Parameters
connectionThe connection on which the request came in.
Returns
true, if the request was completely handled, or false otherwise.

Implements mi::http::IRequest_handler.

Definition at line 35 of file example_http_server.cpp.

bool Request_handler::handle ( mi::http::IConnection connection)
inlinevirtual

Handles a request coming in on a connection.

Returns true, if the request was was completely handled, i.e., no more handlers should be called. Returns false, if the request was not completely handled, i.e., the subsequent handlers should be called. In the latter case no calls to mi::http::IConnection::print() or mi::http::IConnection::enqueue() must have been used on the connection.

Parameters
connectionThe connection on which the request came in.
Returns
true, if the request was completely handled, or false otherwise.

Implements mi::http::IRequest_handler.

Definition at line 65 of file example_rtmp_server.cpp.


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