NetworkServiceRunner.cpp revision 8680dc7232f3eefc091f564093aaffd15075d898
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * VirtualBox Main - interface for VBox DHCP server
59190ecd61435d19ba3515b876272aee7bd12298vboxsync * Copyright (C) 2009-2012 Oracle Corporation
c55c68b6a3324172e9dc207926215845880b0f90vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
c55c68b6a3324172e9dc207926215845880b0f90vboxsync * available from http://www.virtualbox.org. This file is free software;
c55c68b6a3324172e9dc207926215845880b0f90vboxsync * you can redistribute it and/or modify it under the terms of the GNU
c55c68b6a3324172e9dc207926215845880b0f90vboxsync * General Public License (GPL) as published by the Free Software
c55c68b6a3324172e9dc207926215845880b0f90vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
c55c68b6a3324172e9dc207926215845880b0f90vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
c55c68b6a3324172e9dc207926215845880b0f90vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
59190ecd61435d19ba3515b876272aee7bd12298vboxsyncconst std::string NetworkServiceRunner::kNsrKeyName = "--name";
59190ecd61435d19ba3515b876272aee7bd12298vboxsyncconst std::string NetworkServiceRunner::kNsrKeyNetwork = "--network";
59190ecd61435d19ba3515b876272aee7bd12298vboxsyncconst std::string NetworkServiceRunner::kNsrKeyTrunkType = "--trunk-type";
59190ecd61435d19ba3515b876272aee7bd12298vboxsyncconst std::string NetworkServiceRunner::kNsrTrunkName = "--trunk-name";
59190ecd61435d19ba3515b876272aee7bd12298vboxsyncconst std::string NetworkServiceRunner::kNsrMacAddress = "--mac-address";
59190ecd61435d19ba3515b876272aee7bd12298vboxsyncconst std::string NetworkServiceRunner::kNsrIpAddress = "--ip-address";
59190ecd61435d19ba3515b876272aee7bd12298vboxsyncconst std::string NetworkServiceRunner::kNsrIpNetmask = "--netmask";
59190ecd61435d19ba3515b876272aee7bd12298vboxsyncconst std::string NetworkServiceRunner::kNsrKeyNeedMain = "--need-main";
59190ecd61435d19ba3515b876272aee7bd12298vboxsync Data(const char* aProcName):mProcName(aProcName), mProcess(NIL_RTPROCESS){}
59190ecd61435d19ba3515b876272aee7bd12298vboxsyncNetworkServiceRunner::NetworkServiceRunner(const char *aProcName)
59190ecd61435d19ba3515b876272aee7bd12298vboxsyncint NetworkServiceRunner::setOption(const std::string& key, const std::string& val)
59190ecd61435d19ba3515b876272aee7bd12298vboxsync m->mOptions.insert(std::map<std::string, std::string>::value_type(key, val));
if (suffix)
suffix++;
int index = 0;
return rc;
if (!isRunning())
return VINF_OBJECT_DESTROYED;
return VINF_SUCCESS;