Beispiel #1
0
 void pushService(Service *service) {
   lua_State *L = master_->dub_L;
   if (!master_->dub_pushcallback("browseCallback")) {
     // This is really bad...
     throw dub::Exception("'browseCallback' callback not set for mdns.Browser !");
   }
   // <func> <self>
   service->pushobject(L, service, "mdns.Service", true);
   // <func> <self> <service>
   master_->dub_call(2, 0);
   // The service will be garbage collected by Lua.
 }