16 lines
290 B
C++
16 lines
290 B
C++
//
|
|
// 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;
|
|
}
|