using namespace std;
LightBulb_Skeleton::LightBulb_Skeleton(LightBulb *_mainObj, int _portSend, int _portRecv) {
+
bool _bResult = false;
mainObj = _mainObj;
rmiComm = new IoTRMICommServer(_portSend, _portRecv, &_bResult);
extern "C" void* createLightBulb_Skeleton(void** params) {
// Args: *_mainObj, int _portSend, int _portRecv
- return new LightBulb_Skeleton((LightBulb*) params[0], *((int*) params[0]), *((int*) params[1]));
+ return new LightBulb_Skeleton((LightBulb*) params[0], *((int*) params[1]), *((int*) params[2]));
}
extern "C" void destroyLightBulb_Skeleton(void* t) {
int main() {
return 0;
}
-