1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
#include <Glacier2/ServerBlobject.h>
using namespace std;
using namespace Ice;
using namespace Glacier2;
Glacier2::ServerBlobject::ServerBlobject(shared_ptr<Instance> instance, shared_ptr<Connection> connection) :
Glacier2::Blobject(move(instance), move(connection), Ice::Context())
{
}
void
Glacier2::ServerBlobject::ice_invokeAsync(pair<const Byte*, const Byte*> inParams,
function<void(bool, const pair<const Byte*, const Byte*>&)> response,
function<void(exception_ptr)> error,
const Current& current)
{
auto proxy = _reverseConnection->createProxy(current.id);
assert(proxy);
invoke(proxy, inParams, move(response), move(error), current);
}
|