曾倩功能
This commit is contained in:
@@ -21,6 +21,7 @@ namespace ylib
|
||||
bool close();
|
||||
bool send(const std::string& remote_ipaddress, ushort remote_port, const char* pData, uint32 len);
|
||||
void on_recv(std::function<void(ylib::network::udp::node* node, const ylib::AddressPort& remote_ap, const char* data, uint32 len)> callback) { m_callback_recv = callback; }
|
||||
ushort listen_port();
|
||||
const ylib::AddressPort& local() { return m_local_ap; }
|
||||
friend class node_lst;
|
||||
private:
|
||||
|
||||
@@ -25,13 +25,14 @@ namespace ylib
|
||||
uint32 pid = 0;
|
||||
};
|
||||
// 创建进程
|
||||
bool create(const std::string& filepath, const std::string& working_directory = "", const std::vector<std::string>& args = {}, bool wait_close = false, bool show_window = true, size_t* pid = nullptr);
|
||||
bool create(const std::string& filepath, const std::string& working_directory = "", const std::vector<std::string>& args = {}, bool wait_close = false, bool show_window = true, int* return_code = nullptr, size_t* pid = nullptr);
|
||||
// 销毁进程
|
||||
bool destory(uint32 process_id);
|
||||
// 系统进程列表
|
||||
std::list<ylib::process::proc_info> list();
|
||||
// 是否存在
|
||||
size_t exist(const std::string& filepath);
|
||||
bool exist(size_t pid);
|
||||
#ifdef _WIN32
|
||||
// 检测多开
|
||||
bool already_running(const std::string& name);
|
||||
|
||||
Reference in New Issue
Block a user