Commit 934a19b1 authored by captainwong's avatar captainwong

sudoku clients

parent 89492d86
......@@ -188,8 +188,6 @@ struct simple_libevent_server::PrivateImpl
msg = ("Got an error on the connection: ");
msg += strerror(errno);
}
if (/*server->userData_ && */server->onConn_) {
int fd = (int)bufferevent_getfd(bev);
BaseClient* client = nullptr;
{
......@@ -205,14 +203,16 @@ struct simple_libevent_server::PrivateImpl
if (((BaseClientPrivateData*)client->privateData)->timer) {
event_del((event*)((BaseClientPrivateData*)client->privateData)->timer);
}
if (/*server->userData_ && */server->onConn_) {
server->onConn_(false, msg, client, server->userData_);
}
{
std::lock_guard<std::mutex> lg(server->mutex);
server->clients.erase(fd);
delete client;
}
}
}
bufferevent_free(bev);
}
};
......
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\jlib\net\simple_libevent_clients.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\jlib\net\simple_libevent_clients.h" />
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>16.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{9a68aac1-2293-4e85-944e-47356e5313e7}</ProjectGuid>
<RootNamespace>simplelibeventclientsmd</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>SIMPLELIBEVENTCLIENTSLIB;WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<AdditionalIncludeDirectories>$(DEVLIBS)\libevent-2.1.12-stable-install\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>
</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<Lib>
<AdditionalDependencies>$(DEVLIBS)\libevent-2.1.12-stable-install\lib\event_core.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Lib>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>SIMPLELIBEVENTCLIENTSLIB;WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<AdditionalIncludeDirectories>$(DEVLIBS)\libevent-2.1.12-stable-install\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>
</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<Lib>
<AdditionalDependencies>$(DEVLIBS)\libevent-2.1.12-stable-install\lib\event_core.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Lib>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<SubSystem>
</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<SubSystem>
</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\jlib\net\simple_libevent_clients.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\jlib\net\simple_libevent_clients.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
</Project>
\ No newline at end of file
......@@ -10,7 +10,7 @@ using namespace jlib::misc::sudoku;
// n 81 2
Helper helper{};
int puzzles = 1000;
int puzzles = 100;
int npuzzle = 0;
bool done = false;
......@@ -106,7 +106,7 @@ int main(int argc, char** argv)
puzzles = atoi(argv[3]);
}
jlib::init_logger(L"sudoku_server");
jlib::init_logger(L"sudoku_client");
simple_libevent_client client;
client.setUserData(&client);
......
#include "../../jlib/net/simple_libevent_clients.h"
#include "../../jlib/misc/sudoku.h"
#include "../../jlib/log2.h"
#include "../../jlib/util/rand.h"
using namespace jlib::net;
using namespace jlib::misc::sudoku;
// proto: 89 bytes
// [id:] puzzle \r\n
// n 81 2
const char* ip = "127.0.0.1";
int port = 9981;
int thread_count = 10;
int session_count = 10;
int session_connected = 0;
int session_disconnected = 0;
int puzzles_to_solve_per_client = 50;
bool done = false;
std::mutex mutex{};
struct Client : simple_libevent_clients::BaseClient {
Helper helper{};
int puzzles = 1000;
int npuzzle = 0;
Client() : BaseClient() {}
static BaseClient* createClient()
{
std::lock_guard<std::mutex> lg(mutex);
auto client = new Client();
client->puzzles = puzzles_to_solve_per_client;
client->helper.rng = jlib::seeded_random_engine();
return client;
}
static void onConn(bool up, const std::string& msg, BaseClient* client_, void* user_data)
{
auto client = (Client*)client_;
if (up) {
client->sendPuzzle();
{
std::lock_guard<std::mutex> lg(mutex);
printf("live connections %d\n", ++session_connected);
if (session_connected == session_count) {
printf("All connected\n");
return;
}
}
jlib::net::simple_libevent_clients* clients = (jlib::net::simple_libevent_clients*)user_data;
std::string msg;
clients->connect(ip, port, msg);
} else {
std::lock_guard<std::mutex> lg(mutex);
if (++session_disconnected == session_count) {
done = true;
printf("All disconnected\n");
}
}
}
static size_t onMsg(const char* data, size_t len, jlib::net::simple_libevent_clients::BaseClient* client_, void* user_data)
{
auto client = (Client*)client_;
size_t ate = 0;
while (len - ate >= 81 + 2) {
const char* crlf = strstr(data + ate, "\r\n");
if (crlf) {
std::string response(data + ate, crlf);
ate = crlf - data + 2;
if (!client->processResponse(response)) {
client->shutdown();
//done = true;
break;
}
} else if (len - ate > 100) {
client->shutdown();
//done = true;
break;
} else {
break;
}
}
return ate;
}
void sendPuzzle()
{
if (npuzzle++ < puzzles) {
auto puzzle = random_puzzle(&helper);
std::string request = std::to_string(npuzzle) + ":" + puzzle;
JLOG_INFO("T#" + std::to_string(thread_id()) + " " + request);
request += "\r\n";
send(request.c_str(), request.size());
} else {
shutdown();
}
}
bool processResponse(const std::string& response)
{
std::string id, result, info;
std::string::const_iterator colon = std::find(response.begin(), response.end(), ':');
if (colon != response.end()) {
id.assign(response.cbegin(), colon);
result.assign(colon + 1, response.cend());
} else {
result = response;
}
if (result.size() == 81) {
if (id.empty()) {
info = result;
} else {
info = id + ":" + result;
}
JLOG_INFO("T#" + std::to_string(thread_id()) + " " + info);
sendPuzzle();
return true;
} else {
JLOG_ERRO(response);
return false;
}
}
};
int main(int argc, char** argv)
{
if (argc > 1) {
ip = argv[1];
}
if (argc > 2) {
port = atoi(argv[2]);
}
if (argc > 3) {
thread_count = atoi(argv[3]);
}
if (argc > 4) {
session_count = atoi(argv[4]);
}
if (argc > 5) {
puzzles_to_solve_per_client = atoi(argv[5]);
}
jlib::init_logger(L"sudoku_clients");
simple_libevent_clients clients(Client::onConn, Client::onMsg, nullptr, Client::createClient, thread_count, nullptr);
clients.setUserData(&clients);
std::string msg;
if (!clients.connect(ip, port, msg)) {
JLOG_CRTC(msg);
return -1;
}
while (!done) {
std::this_thread::sleep_for(std::chrono::seconds(1));
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>16.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{b87d5885-6846-40e8-acdc-b0f8798368ae}</ProjectGuid>
<RootNamespace>sudokuclients</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>$(SolutionDir)$(Configuration)\simple_libevent_clients_md.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="sudoku_clients.cpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="sudoku_clients.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
</Project>
\ No newline at end of file
......@@ -337,6 +337,10 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sudoku_server", "sudoku_ser
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sudoku_client", "sudoku_client\sudoku_client.vcxproj", "{4BE991D8-F6BB-47C7-B4DE-3767DE77DDB6}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sudoku_clients", "sudoku_clients\sudoku_clients.vcxproj", "{B87D5885-6846-40E8-ACDC-B0F8798368AE}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "simple_libevent_clients_md", "simple_libevent_clients_md\simple_libevent_clients_md.vcxproj", "{9A68AAC1-2293-4E85-944E-47356E5313E7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM = Debug|ARM
......@@ -993,6 +997,30 @@ Global
{4BE991D8-F6BB-47C7-B4DE-3767DE77DDB6}.Release|x64.Build.0 = Release|x64
{4BE991D8-F6BB-47C7-B4DE-3767DE77DDB6}.Release|x86.ActiveCfg = Release|Win32
{4BE991D8-F6BB-47C7-B4DE-3767DE77DDB6}.Release|x86.Build.0 = Release|Win32
{B87D5885-6846-40E8-ACDC-B0F8798368AE}.Debug|ARM.ActiveCfg = Debug|Win32
{B87D5885-6846-40E8-ACDC-B0F8798368AE}.Debug|ARM64.ActiveCfg = Debug|Win32
{B87D5885-6846-40E8-ACDC-B0F8798368AE}.Debug|x64.ActiveCfg = Debug|x64
{B87D5885-6846-40E8-ACDC-B0F8798368AE}.Debug|x64.Build.0 = Debug|x64
{B87D5885-6846-40E8-ACDC-B0F8798368AE}.Debug|x86.ActiveCfg = Debug|Win32
{B87D5885-6846-40E8-ACDC-B0F8798368AE}.Debug|x86.Build.0 = Debug|Win32
{B87D5885-6846-40E8-ACDC-B0F8798368AE}.Release|ARM.ActiveCfg = Release|Win32
{B87D5885-6846-40E8-ACDC-B0F8798368AE}.Release|ARM64.ActiveCfg = Release|Win32
{B87D5885-6846-40E8-ACDC-B0F8798368AE}.Release|x64.ActiveCfg = Release|x64
{B87D5885-6846-40E8-ACDC-B0F8798368AE}.Release|x64.Build.0 = Release|x64
{B87D5885-6846-40E8-ACDC-B0F8798368AE}.Release|x86.ActiveCfg = Release|Win32
{B87D5885-6846-40E8-ACDC-B0F8798368AE}.Release|x86.Build.0 = Release|Win32
{9A68AAC1-2293-4E85-944E-47356E5313E7}.Debug|ARM.ActiveCfg = Debug|Win32
{9A68AAC1-2293-4E85-944E-47356E5313E7}.Debug|ARM64.ActiveCfg = Debug|Win32
{9A68AAC1-2293-4E85-944E-47356E5313E7}.Debug|x64.ActiveCfg = Debug|x64
{9A68AAC1-2293-4E85-944E-47356E5313E7}.Debug|x64.Build.0 = Debug|x64
{9A68AAC1-2293-4E85-944E-47356E5313E7}.Debug|x86.ActiveCfg = Debug|Win32
{9A68AAC1-2293-4E85-944E-47356E5313E7}.Debug|x86.Build.0 = Debug|Win32
{9A68AAC1-2293-4E85-944E-47356E5313E7}.Release|ARM.ActiveCfg = Release|Win32
{9A68AAC1-2293-4E85-944E-47356E5313E7}.Release|ARM64.ActiveCfg = Release|Win32
{9A68AAC1-2293-4E85-944E-47356E5313E7}.Release|x64.ActiveCfg = Release|x64
{9A68AAC1-2293-4E85-944E-47356E5313E7}.Release|x64.Build.0 = Release|x64
{9A68AAC1-2293-4E85-944E-47356E5313E7}.Release|x86.ActiveCfg = Release|Win32
{9A68AAC1-2293-4E85-944E-47356E5313E7}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
......@@ -1077,6 +1105,8 @@ Global
{0948E69C-8D39-4C84-853F-9BEDAE74F1BB} = {2C706FD2-D417-43C4-B393-68B58A05E26B}
{315E56BE-814B-4B1C-87A3-23C23A4F04B4} = {77DBD16D-112C-448D-BA6A-CE566A9331FC}
{4BE991D8-F6BB-47C7-B4DE-3767DE77DDB6} = {77DBD16D-112C-448D-BA6A-CE566A9331FC}
{B87D5885-6846-40E8-ACDC-B0F8798368AE} = {77DBD16D-112C-448D-BA6A-CE566A9331FC}
{9A68AAC1-2293-4E85-944E-47356E5313E7} = {729A65CE-3F07-4C2E-ACDC-F9EEC6477F2A}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {A8EBEA58-739C-4DED-99C0-239779F57D5D}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment