Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ IncomingRequest()

Ice::IncomingRequest::IncomingRequest ( int32_t requestId,
ConnectionPtr connection,
ObjectAdapterPtr adapter,
InputStream & inputStream,
std::int32_t requestCount )

Constructs an IncomingRequest object.

Parameters
requestIdThe request ID. It's 0 for one-way requests.
connectionThe connection that received the request. It's nullptr for collocated invocations.
adapterThe object adapter to set in Current.
inputStreamThe input stream buffer over the incoming Ice protocol request message. The stream is positioned at the beginning of the request header - the next data to read is the identity of the target.
requestCountThe number of requests remaining in inputStream. This value is always 1 for non-batched requests.
Remarks
This constructor reads the request header from inputStream. When it completes, the input stream is positioned at the beginning of encapsulation carried by the request.
The Ice runtime calls this constructor when it dispatches an incoming request. You may want to call it in a middleware unit test.