Skip to content

Commit

Permalink
Various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Infinest committed Apr 18, 2024
1 parent c2422d6 commit 49d3df9
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions FSP Server/FSP Server.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "FSP Server.h"
#include "UdpClient.h"
#include "UdpSocket.h"
#include "winsock2.h"
#include <iostream>
#include <vector>
Expand Down Expand Up @@ -89,7 +89,7 @@ int main(int argumentCount, char* arguments[])
return EXIT_SUCCESS;
}

std::cout << "Starting server with passwort \"" << password << "\" in directory \"" << path.string() << "\"" << std::endl;
std::cout << "Starting server with password \"" << password << "\" in directory \"" << path.string() << "\"" << std::endl;

UdpSocket::basePath = path;
UdpSocket client = UdpSocket(ip, port, password);
Expand All @@ -105,7 +105,7 @@ void printHelp() {
std::cout << std::noskipws << " -d, --directory: Determines the directory in which the server should run." << std::endl;
std::cout << std::noskipws << " -p, --password: Sets a password that clients need to supply to access files. [Default: none]" << std::endl;
std::cout << std::noskipws << " -a, --address: Determines which address the socket should be bound to. [Default: 0:0.0:0:21]" << std::endl;
std::cout << std::noskipws << " -i -ignore-keys; Determines whether or not FSP packet keys should be checked or not. [Default: 0]" << std::endl;
std::cout << std::noskipws << " -i -ignore-keys; Determines whether or not FSP packet key validation should be skipped. [Default: 1]" << std::endl;
std::cout << std::noskipws << " -v, --version: Display version info." << std::endl;
}

Expand Down
4 changes: 2 additions & 2 deletions FSP Server/FSP Server.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@
<ClCompile Include="FspDirEnt.cpp" />
<ClCompile Include="FspHelper.cpp" />
<ClCompile Include="FspPacket.cpp" />
<ClCompile Include="UdpClient.cpp" />
<ClCompile Include="UdpSocket.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="FSP Server.h" />
<ClInclude Include="FspClient.h" />
<ClInclude Include="FspDirEnt.h" />
<ClInclude Include="FspHelper.h" />
<ClInclude Include="FspPacket.h" />
<ClInclude Include="UdpClient.h" />
<ClInclude Include="UdpSocket.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
Expand Down
4 changes: 2 additions & 2 deletions FSP Server/FSP Server.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<ClCompile Include="FSP Server.cpp">
<Filter>Quelldateien</Filter>
</ClCompile>
<ClCompile Include="UdpClient.cpp">
<ClCompile Include="UdpSocket.cpp">
<Filter>Quelldateien</Filter>
</ClCompile>
<ClCompile Include="FspPacket.cpp">
Expand All @@ -35,7 +35,7 @@
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="UdpClient.h">
<ClInclude Include="UdpSocket.h">
<Filter>Headerdateien</Filter>
</ClInclude>
<ClInclude Include="FspPacket.h">
Expand Down
2 changes: 1 addition & 1 deletion FSP Server/FspHelper.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "FspHelper.h"
#include "FspPacket.h"
#include "UdpClient.h"
#include "UdpSocket.h"
#include <regex>
#include <filesystem>
#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion FSP Server/FspPacket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "FspHelper.h"
#include <vector>
#include <stdexcept>
#include "UdpClient.h"
#include "UdpSocket.h"
#include <filesystem>
#include <fstream>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion FSP Server/UdpClient.cpp → FSP Server/UdpSocket.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "UdpClient.h"
#include "UdpSocket.h"
#include "FspClient.h"
#include "FspPacket.h"
#include <iostream>
Expand Down
File renamed without changes.

0 comments on commit 49d3df9

Please sign in to comment.