接着 server的提交顺便提交 多了一丁点页面。
This commit is contained in:
15
api/ClientExample.cpp
Normal file
15
api/ClientExample.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// Created by dongl on 23-5-16.
|
||||
//
|
||||
|
||||
#include "ClientExample.h"
|
||||
|
||||
Client* ClientExample::client;
|
||||
|
||||
Client *ClientExample::run(const std::string& ip, int port) {
|
||||
if (client == nullptr) {
|
||||
client = new Client(std::move(ip), port);
|
||||
client->run();
|
||||
}
|
||||
return client;
|
||||
}
|
||||
Reference in New Issue
Block a user