Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fed365f858
Fetching contributors…

Cannot retrieve contributors at this time

executable file 18 lines (13 sloc) 0.441 kb
#include "Naming.h"
using namespace std;
Remote *Naming::lookup(string serviceName) {
return stubRegistry.find(serviceName)->second;
}
void Naming::bind(string serviceName, string host, int port) {
if (serviceName == "EchoService") {
Endpoint e(host, port);
ClientCommunication *cComm = new ClientCommunication(e);
Remote *stub = new EchoService_stub(cComm);
stubRegistry.insert(pair<string, Remote*>(serviceName, stub));
}
}
Jump to Line
Something went wrong with that request. Please try again.