Fixed Several bugs;

Book Labels are now searchable in many ways
Server broadcast apamming fixed
This commit is contained in:
2017-06-27 21:54:13 +02:00
parent f115808d4e
commit 51d1119776
107 changed files with 120180 additions and 122328 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
</configuration>
</configuration>

View File

@ -8,9 +8,10 @@
<OutputType>Exe</OutputType>
<RootNamespace>BuechermarktServer</RootNamespace>
<AssemblyName>BuechermarktServer</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
@ -49,10 +50,5 @@
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Resource Include="mongod.exe">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Resource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -23,7 +23,10 @@ namespace BuechermarktServer
Directory.CreateDirectory(RelativeDbPath);
}
var process = new Process();
process.StartInfo.FileName = "mongod.exe";
process.StartInfo.FileName = ".\\mongod.exe";
process.StartInfo.WorkingDirectory = Process.GetCurrentProcess().StartInfo.WorkingDirectory;
Console.WriteLine(Path.Combine(Environment.CurrentDirectory, "mongod.exe"));
process.StartInfo.Arguments = "--dbpath " + RelativeDbPath;
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.RedirectStandardError = true;
@ -36,7 +39,7 @@ namespace BuechermarktServer
ChildProcessTracker.AddProcess(process);
process.BeginErrorReadLine();
process.BeginOutputReadLine();
while (!process.WaitForExit(1000))
while (!process.WaitForExit(100))
{
Broadcast();
}
@ -56,7 +59,7 @@ namespace BuechermarktServer
static void Broadcast()
{
UdpClient client = new UdpClient();
IPEndPoint ip = new IPEndPoint(IPAddress.Broadcast, 15000);
IPEndPoint ip = new IPEndPoint(IPAddress.Broadcast, 3000);
byte[] bytes = Encoding.ASCII.GetBytes(ServerIdentifier);
while (true)
{

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
</configuration>
</configuration>

View File

@ -3,4 +3,4 @@ WiredTiger 2.9.2: (December 23, 2016)
WiredTiger version
major=2,minor=9,patch=2
file:WiredTiger.wt
access_pattern_hint=none,allocation_size=4KB,app_metadata=,block_allocation=best,block_compressor=,cache_resident=false,checkpoint=(WiredTigerCheckpoint.13=(addr="018481e4de671f778b81e45dfbb3a28d81e4a1a71b13808080e2cfc0e21fc0",order=13,time=1495233614,size=20480,write_gen=26)),checkpoint_lsn=(5,3840),checksum=uncompressed,collator=,columns=,dictionary=0,encryption=(keyid=,name=),format=btree,huffman_key=,huffman_value=,id=0,ignore_in_memory_cache_size=false,internal_item_max=0,internal_key_max=0,internal_key_truncate=true,internal_page_max=4KB,key_format=S,key_gap=10,leaf_item_max=0,leaf_key_max=0,leaf_page_max=32KB,leaf_value_max=0,log=(enabled=true),memory_page_max=5MB,os_cache_dirty_max=0,os_cache_max=0,prefix_compression=false,prefix_compression_min=4,split_deepen_min_child=0,split_deepen_per_child=0,split_pct=75,value_format=S,version=(major=1,minor=1)
access_pattern_hint=none,allocation_size=4KB,app_metadata=,block_allocation=best,block_compressor=,cache_resident=false,checkpoint=(WiredTigerCheckpoint.1=(addr="018381e440b482098481e4248984be808080808080e23fc0e20fc0",order=1,time=1498072305,size=16384,write_gen=2)),checkpoint_lsn=(2,128),checksum=uncompressed,collator=,columns=,dictionary=0,encryption=(keyid=,name=),format=btree,huffman_key=,huffman_value=,id=0,ignore_in_memory_cache_size=false,internal_item_max=0,internal_key_max=0,internal_key_truncate=true,internal_page_max=4KB,key_format=S,key_gap=10,leaf_item_max=0,leaf_key_max=0,leaf_page_max=32KB,leaf_value_max=0,log=(enabled=true),memory_page_max=5MB,os_cache_dirty_max=0,os_cache_max=0,prefix_compression=false,prefix_compression_min=4,split_deepen_min_child=0,split_deepen_per_child=0,split_pct=90,value_format=S,version=(major=1,minor=1)

View File

@ -1 +1 @@
15548
7612

View File

@ -5,3 +5,8 @@ D:\Dokumente\Projekte\Privat\buechermarkt\BuechermarktServer\obj\Debug\Buecherma
D:\Dokumente\Projekte\Privat\buechermarkt\BuechermarktServer\obj\Debug\BuechermarktServer.exe
D:\Dokumente\Projekte\Privat\buechermarkt\BuechermarktServer\obj\Debug\BuechermarktServer.pdb
D:\Dokumente\Projekte\Privat\buechermarkt\BuechermarktServer\obj\Debug\BuechermarktServer.g.resources
D:\Dokumente\Projekte\Buechermarkt\BuechermarktServer\bin\Debug\BuechermarktServer.exe.config
D:\Dokumente\Projekte\Buechermarkt\BuechermarktServer\bin\Debug\BuechermarktServer.exe
D:\Dokumente\Projekte\Buechermarkt\BuechermarktServer\bin\Debug\BuechermarktServer.pdb
D:\Dokumente\Projekte\Buechermarkt\BuechermarktServer\obj\Debug\BuechermarktServer.exe
D:\Dokumente\Projekte\Buechermarkt\BuechermarktServer\obj\Debug\BuechermarktServer.pdb