From c2929bfc429f1181da24784d4bc06b70bb666f41 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Sun, 3 Mar 2013 10:31:07 +0000 Subject: git-svn-id: http://svn.miranda-ng.org/main/trunk@3864 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- .../NotifyAnything/SendLog/SendLogWin_10.vcxproj | 164 ++++++++++++++++++++ .../SendLog/SendLogWin_10.vcxproj.filters | 28 ++++ .../NotifyAnything/SendLog/SendLogWin_11.vcxproj | 168 +++++++++++++++++++++ .../SendLog/SendLogWin_11.vcxproj.filters | 28 ++++ plugins/NotifyAnything/SendLog/SendLog_10.vcxproj | 164 ++++++++++++++++++++ .../SendLog/SendLog_10.vcxproj.filters | 28 ++++ plugins/NotifyAnything/SendLog/SendLog_11.vcxproj | 168 +++++++++++++++++++++ .../SendLog/SendLog_11.vcxproj.filters | 28 ++++ plugins/NotifyAnything/SendLog/src/Common.h | 9 ++ plugins/NotifyAnything/SendLog/src/SLImp.cpp | 84 +++++++++++ plugins/NotifyAnything/SendLog/src/SendLog.cpp | 34 +++++ plugins/NotifyAnything/SendLog/src/SendLogWin.cpp | 26 ++++ plugins/NotifyAnything/SendLog/src/stdafx.cpp | 18 +++ .../NotifyAnything/sendlog/SendLogWin_10.vcxproj | 164 -------------------- .../sendlog/SendLogWin_10.vcxproj.filters | 28 ---- .../NotifyAnything/sendlog/SendLogWin_11.vcxproj | 168 --------------------- .../sendlog/SendLogWin_11.vcxproj.filters | 28 ---- plugins/NotifyAnything/sendlog/SendLog_10.vcxproj | 164 -------------------- .../sendlog/SendLog_10.vcxproj.filters | 28 ---- plugins/NotifyAnything/sendlog/SendLog_11.vcxproj | 168 --------------------- .../sendlog/SendLog_11.vcxproj.filters | 28 ---- plugins/NotifyAnything/sendlog/src/Common.h | 9 -- plugins/NotifyAnything/sendlog/src/SLImp.cpp | 84 ----------- plugins/NotifyAnything/sendlog/src/SendLog.cpp | 34 ----- plugins/NotifyAnything/sendlog/src/SendLogWin.cpp | 26 ---- plugins/NotifyAnything/sendlog/src/stdafx.cpp | 18 --- 26 files changed, 947 insertions(+), 947 deletions(-) create mode 100644 plugins/NotifyAnything/SendLog/SendLogWin_10.vcxproj create mode 100644 plugins/NotifyAnything/SendLog/SendLogWin_10.vcxproj.filters create mode 100644 plugins/NotifyAnything/SendLog/SendLogWin_11.vcxproj create mode 100644 plugins/NotifyAnything/SendLog/SendLogWin_11.vcxproj.filters create mode 100644 plugins/NotifyAnything/SendLog/SendLog_10.vcxproj create mode 100644 plugins/NotifyAnything/SendLog/SendLog_10.vcxproj.filters create mode 100644 plugins/NotifyAnything/SendLog/SendLog_11.vcxproj create mode 100644 plugins/NotifyAnything/SendLog/SendLog_11.vcxproj.filters create mode 100644 plugins/NotifyAnything/SendLog/src/Common.h create mode 100644 plugins/NotifyAnything/SendLog/src/SLImp.cpp create mode 100644 plugins/NotifyAnything/SendLog/src/SendLog.cpp create mode 100644 plugins/NotifyAnything/SendLog/src/SendLogWin.cpp create mode 100644 plugins/NotifyAnything/SendLog/src/stdafx.cpp delete mode 100644 plugins/NotifyAnything/sendlog/SendLogWin_10.vcxproj delete mode 100644 plugins/NotifyAnything/sendlog/SendLogWin_10.vcxproj.filters delete mode 100644 plugins/NotifyAnything/sendlog/SendLogWin_11.vcxproj delete mode 100644 plugins/NotifyAnything/sendlog/SendLogWin_11.vcxproj.filters delete mode 100644 plugins/NotifyAnything/sendlog/SendLog_10.vcxproj delete mode 100644 plugins/NotifyAnything/sendlog/SendLog_10.vcxproj.filters delete mode 100644 plugins/NotifyAnything/sendlog/SendLog_11.vcxproj delete mode 100644 plugins/NotifyAnything/sendlog/SendLog_11.vcxproj.filters delete mode 100644 plugins/NotifyAnything/sendlog/src/Common.h delete mode 100644 plugins/NotifyAnything/sendlog/src/SLImp.cpp delete mode 100644 plugins/NotifyAnything/sendlog/src/SendLog.cpp delete mode 100644 plugins/NotifyAnything/sendlog/src/SendLogWin.cpp delete mode 100644 plugins/NotifyAnything/sendlog/src/stdafx.cpp diff --git a/plugins/NotifyAnything/SendLog/SendLogWin_10.vcxproj b/plugins/NotifyAnything/SendLog/SendLogWin_10.vcxproj new file mode 100644 index 0000000000..1a024cae72 --- /dev/null +++ b/plugins/NotifyAnything/SendLog/SendLogWin_10.vcxproj @@ -0,0 +1,164 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + SendLogWin + {F72A3196-30E6-430B-A5EA-3332113A9959} + + + + Application + MultiByte + true + + + Application + MultiByte + + + Application + MultiByte + true + + + Application + MultiByte + + + + + + + + + + + + + + + + + + + <_ProjectFileVersion>10.0.40219.1 + $(SolutionDir)$(Configuration)\ + $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)64\ + $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)\ + $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)64\ + $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ + true + + + + Disabled + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + EnableFastChecks + MultiThreadedDebugDLL + Level3 + EditAndContinue + Use + Common.h + + + true + Console + false + $(IntDir)$(TargetName).lib + ws2_32.lib;%(AdditionalDependencies) + + + + + Disabled + WIN64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + EnableFastChecks + MultiThreadedDebugDLL + Level3 + Use + Common.h + + + true + Console + false + $(IntDir)$(TargetName).lib + ws2_32.lib;%(AdditionalDependencies) + + + + + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + Level3 + Full + Size + Use + Common.h + + + true + Console + true + true + false + $(IntDir)$(TargetName).lib + /PDBALTPATH:%_PDB% + ws2_32.lib;%(AdditionalDependencies) + + + + + WIN64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + Level3 + Full + Size + Use + Common.h + + + true + Console + true + true + false + $(IntDir)$(TargetName).lib + /PDBALTPATH:%_PDB% + ws2_32.lib;%(AdditionalDependencies) + + + + + + + Create + + + + + + + + + \ No newline at end of file diff --git a/plugins/NotifyAnything/SendLog/SendLogWin_10.vcxproj.filters b/plugins/NotifyAnything/SendLog/SendLogWin_10.vcxproj.filters new file mode 100644 index 0000000000..42b82c1d08 --- /dev/null +++ b/plugins/NotifyAnything/SendLog/SendLogWin_10.vcxproj.filters @@ -0,0 +1,28 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {d7898d8b-d9be-4841-a698-9c12f867bcf6} + + + + + Source Files + + + Source Files + + + Source Files + + + + + Header Files + + + \ No newline at end of file diff --git a/plugins/NotifyAnything/SendLog/SendLogWin_11.vcxproj b/plugins/NotifyAnything/SendLog/SendLogWin_11.vcxproj new file mode 100644 index 0000000000..52c40cfff4 --- /dev/null +++ b/plugins/NotifyAnything/SendLog/SendLogWin_11.vcxproj @@ -0,0 +1,168 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + SendLogWin + {F72A3196-30E6-430B-A5EA-3332113A9959} + + + + Application + MultiByte + true + v110_xp + + + Application + MultiByte + v110_xp + + + Application + MultiByte + true + v110_xp + + + Application + MultiByte + v110_xp + + + + + + + + + + + + + + + + + + + <_ProjectFileVersion>10.0.40219.1 + $(SolutionDir)$(Configuration)\ + $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)64\ + $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)\ + $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)64\ + $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ + true + + + + Disabled + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + EnableFastChecks + MultiThreadedDebugDLL + Level3 + EditAndContinue + Use + Common.h + + + true + Console + false + $(IntDir)$(TargetName).lib + ws2_32.lib;%(AdditionalDependencies) + + + + + Disabled + WIN64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + EnableFastChecks + MultiThreadedDebugDLL + Level3 + Use + Common.h + + + true + Console + false + $(IntDir)$(TargetName).lib + ws2_32.lib;%(AdditionalDependencies) + + + + + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + Level3 + Full + Size + Use + Common.h + + + true + Console + true + true + false + $(IntDir)$(TargetName).lib + /PDBALTPATH:%_PDB% + ws2_32.lib;%(AdditionalDependencies) + + + + + WIN64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + Level3 + Full + Size + Use + Common.h + + + true + Console + true + true + false + $(IntDir)$(TargetName).lib + /PDBALTPATH:%_PDB% + ws2_32.lib;%(AdditionalDependencies) + + + + + + + Create + + + + + + + + + \ No newline at end of file diff --git a/plugins/NotifyAnything/SendLog/SendLogWin_11.vcxproj.filters b/plugins/NotifyAnything/SendLog/SendLogWin_11.vcxproj.filters new file mode 100644 index 0000000000..42b82c1d08 --- /dev/null +++ b/plugins/NotifyAnything/SendLog/SendLogWin_11.vcxproj.filters @@ -0,0 +1,28 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {d7898d8b-d9be-4841-a698-9c12f867bcf6} + + + + + Source Files + + + Source Files + + + Source Files + + + + + Header Files + + + \ No newline at end of file diff --git a/plugins/NotifyAnything/SendLog/SendLog_10.vcxproj b/plugins/NotifyAnything/SendLog/SendLog_10.vcxproj new file mode 100644 index 0000000000..109fbc72c3 --- /dev/null +++ b/plugins/NotifyAnything/SendLog/SendLog_10.vcxproj @@ -0,0 +1,164 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + SendLog + {1AF47743-6E78-4C83-A1E5-21F98516EF5E} + + + + Application + MultiByte + true + + + Application + MultiByte + + + Application + MultiByte + true + + + Application + MultiByte + + + + + + + + + + + + + + + + + + + <_ProjectFileVersion>10.0.40219.1 + $(SolutionDir)$(Configuration)\ + $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)64\ + $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)\ + $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)64\ + $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ + true + + + + Disabled + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + EnableFastChecks + MultiThreadedDebugDLL + Level3 + EditAndContinue + Use + Common.h + + + true + Console + false + $(IntDir)$(TargetName).lib + ws2_32.lib;%(AdditionalDependencies) + + + + + Disabled + WIN64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + EnableFastChecks + MultiThreadedDebugDLL + Level3 + Use + Common.h + + + true + Console + false + $(IntDir)$(TargetName).lib + ws2_32.lib;%(AdditionalDependencies) + + + + + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + Level3 + Full + Size + Use + Common.h + + + true + Console + true + true + false + $(IntDir)$(TargetName).lib + /PDBALTPATH:%_PDB% + ws2_32.lib;%(AdditionalDependencies) + + + + + WIN64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + Level3 + Full + Size + Use + Common.h + + + true + Console + true + true + false + $(IntDir)$(TargetName).lib + /PDBALTPATH:%_PDB% + ws2_32.lib;%(AdditionalDependencies) + + + + + + + Create + + + + + + + + + \ No newline at end of file diff --git a/plugins/NotifyAnything/SendLog/SendLog_10.vcxproj.filters b/plugins/NotifyAnything/SendLog/SendLog_10.vcxproj.filters new file mode 100644 index 0000000000..2a419c3c9e --- /dev/null +++ b/plugins/NotifyAnything/SendLog/SendLog_10.vcxproj.filters @@ -0,0 +1,28 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {1e7dd534-d580-4c97-84cc-fdb23038ee29} + + + + + Source Files + + + Source Files + + + Source Files + + + + + Header Files + + + \ No newline at end of file diff --git a/plugins/NotifyAnything/SendLog/SendLog_11.vcxproj b/plugins/NotifyAnything/SendLog/SendLog_11.vcxproj new file mode 100644 index 0000000000..89a77a4d18 --- /dev/null +++ b/plugins/NotifyAnything/SendLog/SendLog_11.vcxproj @@ -0,0 +1,168 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + SendLog + {1AF47743-6E78-4C83-A1E5-21F98516EF5E} + + + + Application + MultiByte + true + v110_xp + + + Application + MultiByte + v110_xp + + + Application + MultiByte + true + v110_xp + + + Application + MultiByte + v110_xp + + + + + + + + + + + + + + + + + + + <_ProjectFileVersion>10.0.40219.1 + $(SolutionDir)$(Configuration)\ + $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)64\ + $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)\ + $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)64\ + $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ + true + + + + Disabled + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + EnableFastChecks + MultiThreadedDebugDLL + Level3 + EditAndContinue + Use + Common.h + + + true + Console + false + $(IntDir)$(TargetName).lib + ws2_32.lib;%(AdditionalDependencies) + + + + + Disabled + WIN64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + EnableFastChecks + MultiThreadedDebugDLL + Level3 + Use + Common.h + + + true + Console + false + $(IntDir)$(TargetName).lib + ws2_32.lib;%(AdditionalDependencies) + + + + + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + Level3 + Full + Size + Use + Common.h + + + true + Console + true + true + false + $(IntDir)$(TargetName).lib + /PDBALTPATH:%_PDB% + ws2_32.lib;%(AdditionalDependencies) + + + + + WIN64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + Level3 + Full + Size + Use + Common.h + + + true + Console + true + true + false + $(IntDir)$(TargetName).lib + /PDBALTPATH:%_PDB% + ws2_32.lib;%(AdditionalDependencies) + + + + + + + Create + + + + + + + + + \ No newline at end of file diff --git a/plugins/NotifyAnything/SendLog/SendLog_11.vcxproj.filters b/plugins/NotifyAnything/SendLog/SendLog_11.vcxproj.filters new file mode 100644 index 0000000000..2a419c3c9e --- /dev/null +++ b/plugins/NotifyAnything/SendLog/SendLog_11.vcxproj.filters @@ -0,0 +1,28 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {1e7dd534-d580-4c97-84cc-fdb23038ee29} + + + + + Source Files + + + Source Files + + + Source Files + + + + + Header Files + + + \ No newline at end of file diff --git a/plugins/NotifyAnything/SendLog/src/Common.h b/plugins/NotifyAnything/SendLog/src/Common.h new file mode 100644 index 0000000000..6015a1c011 --- /dev/null +++ b/plugins/NotifyAnything/SendLog/src/Common.h @@ -0,0 +1,9 @@ +#define _CRT_SECURE_NO_WARNINGS + +#define _WINSOCKAPI_ // don't include winsock 1.x + +#include +#include +#include +#include + diff --git a/plugins/NotifyAnything/SendLog/src/SLImp.cpp b/plugins/NotifyAnything/SendLog/src/SLImp.cpp new file mode 100644 index 0000000000..3e9b38dd77 --- /dev/null +++ b/plugins/NotifyAnything/SendLog/src/SLImp.cpp @@ -0,0 +1,84 @@ +#include "Common.h" + +void implementation(int argc, char **argv, bool console) +{ + int port = 12001; + bool tcp = false; + const char *target = "127.0.0.1"; + + if (argc >= 2 && !strcmp("-T", argv[1])) { + tcp = true; + argc -= 1; + argv += 1; + } + + if (argc >= 3 && !strcmp("-H", argv[1])) { + target = argv[2]; + argc -= 2; + argv += 2; + } + + if (argc >= 3 && !strcmp("-P", argv[1])) { + port = atoi(argv[2]); + argc -= 2; + argv += 2; + } + + WSADATA wsaData; + int err = WSAStartup(MAKEWORD(2, 2), &wsaData); + if (err) + throw (DWORD) err; + + char portbuf[10]; + sprintf(portbuf, "%i", port); + + ADDRINFO hints; + memset(&hints, 0, sizeof hints); + hints.ai_socktype = SOCK_DGRAM; + hints.ai_family = PF_INET; + ADDRINFO *res; + err = getaddrinfo(target, portbuf, &hints, &res); + + if (err || !res) + throw (DWORD) err; + + SOCKET sock; + SOCKADDR_IN to = *(SOCKADDR_IN*)res->ai_addr; + + sock = socket(AF_INET, tcp ? SOCK_STREAM : SOCK_DGRAM, tcp ? IPPROTO_TCP : IPPROTO_UDP); + if (sock == INVALID_SOCKET) + throw (DWORD) WSAGetLastError(); + + SOCKADDR_IN self; + ZeroMemory(&self, sizeof self); + self.sin_family = AF_INET; + + if (bind(sock, (const SOCKADDR *) &self, sizeof self)) + throw (DWORD) WSAGetLastError(); + + if (connect(sock, (const SOCKADDR *) &to, sizeof to)) + throw (DWORD) WSAGetLastError(); + + if (console && (argc == 1 || argc == 3 && !strcmp("-p", argv[1]))) { + std::string prefix; + if (argc == 3) + prefix = argv[2]; + std::string line; + while (std::getline(std::cin, line)) { + std::string data = prefix + line; + send(sock, data.data(), data.size(), 0); + } + } else { + std::string message = argv[1]; + for (int i=2; i. +*/ + +#include "common.h" \ No newline at end of file diff --git a/plugins/NotifyAnything/sendlog/SendLogWin_10.vcxproj b/plugins/NotifyAnything/sendlog/SendLogWin_10.vcxproj deleted file mode 100644 index 1a024cae72..0000000000 --- a/plugins/NotifyAnything/sendlog/SendLogWin_10.vcxproj +++ /dev/null @@ -1,164 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - SendLogWin - {F72A3196-30E6-430B-A5EA-3332113A9959} - - - - Application - MultiByte - true - - - Application - MultiByte - - - Application - MultiByte - true - - - Application - MultiByte - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.40219.1 - $(SolutionDir)$(Configuration)\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Level3 - EditAndContinue - Use - Common.h - - - true - Console - false - $(IntDir)$(TargetName).lib - ws2_32.lib;%(AdditionalDependencies) - - - - - Disabled - WIN64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Level3 - Use - Common.h - - - true - Console - false - $(IntDir)$(TargetName).lib - ws2_32.lib;%(AdditionalDependencies) - - - - - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - Level3 - Full - Size - Use - Common.h - - - true - Console - true - true - false - $(IntDir)$(TargetName).lib - /PDBALTPATH:%_PDB% - ws2_32.lib;%(AdditionalDependencies) - - - - - WIN64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - Level3 - Full - Size - Use - Common.h - - - true - Console - true - true - false - $(IntDir)$(TargetName).lib - /PDBALTPATH:%_PDB% - ws2_32.lib;%(AdditionalDependencies) - - - - - - - Create - - - - - - - - - \ No newline at end of file diff --git a/plugins/NotifyAnything/sendlog/SendLogWin_10.vcxproj.filters b/plugins/NotifyAnything/sendlog/SendLogWin_10.vcxproj.filters deleted file mode 100644 index 42b82c1d08..0000000000 --- a/plugins/NotifyAnything/sendlog/SendLogWin_10.vcxproj.filters +++ /dev/null @@ -1,28 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {d7898d8b-d9be-4841-a698-9c12f867bcf6} - - - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - \ No newline at end of file diff --git a/plugins/NotifyAnything/sendlog/SendLogWin_11.vcxproj b/plugins/NotifyAnything/sendlog/SendLogWin_11.vcxproj deleted file mode 100644 index 52c40cfff4..0000000000 --- a/plugins/NotifyAnything/sendlog/SendLogWin_11.vcxproj +++ /dev/null @@ -1,168 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - SendLogWin - {F72A3196-30E6-430B-A5EA-3332113A9959} - - - - Application - MultiByte - true - v110_xp - - - Application - MultiByte - v110_xp - - - Application - MultiByte - true - v110_xp - - - Application - MultiByte - v110_xp - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.40219.1 - $(SolutionDir)$(Configuration)\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Level3 - EditAndContinue - Use - Common.h - - - true - Console - false - $(IntDir)$(TargetName).lib - ws2_32.lib;%(AdditionalDependencies) - - - - - Disabled - WIN64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Level3 - Use - Common.h - - - true - Console - false - $(IntDir)$(TargetName).lib - ws2_32.lib;%(AdditionalDependencies) - - - - - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - Level3 - Full - Size - Use - Common.h - - - true - Console - true - true - false - $(IntDir)$(TargetName).lib - /PDBALTPATH:%_PDB% - ws2_32.lib;%(AdditionalDependencies) - - - - - WIN64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - Level3 - Full - Size - Use - Common.h - - - true - Console - true - true - false - $(IntDir)$(TargetName).lib - /PDBALTPATH:%_PDB% - ws2_32.lib;%(AdditionalDependencies) - - - - - - - Create - - - - - - - - - \ No newline at end of file diff --git a/plugins/NotifyAnything/sendlog/SendLogWin_11.vcxproj.filters b/plugins/NotifyAnything/sendlog/SendLogWin_11.vcxproj.filters deleted file mode 100644 index 42b82c1d08..0000000000 --- a/plugins/NotifyAnything/sendlog/SendLogWin_11.vcxproj.filters +++ /dev/null @@ -1,28 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {d7898d8b-d9be-4841-a698-9c12f867bcf6} - - - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - \ No newline at end of file diff --git a/plugins/NotifyAnything/sendlog/SendLog_10.vcxproj b/plugins/NotifyAnything/sendlog/SendLog_10.vcxproj deleted file mode 100644 index 109fbc72c3..0000000000 --- a/plugins/NotifyAnything/sendlog/SendLog_10.vcxproj +++ /dev/null @@ -1,164 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - SendLog - {1AF47743-6E78-4C83-A1E5-21F98516EF5E} - - - - Application - MultiByte - true - - - Application - MultiByte - - - Application - MultiByte - true - - - Application - MultiByte - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.40219.1 - $(SolutionDir)$(Configuration)\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Level3 - EditAndContinue - Use - Common.h - - - true - Console - false - $(IntDir)$(TargetName).lib - ws2_32.lib;%(AdditionalDependencies) - - - - - Disabled - WIN64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Level3 - Use - Common.h - - - true - Console - false - $(IntDir)$(TargetName).lib - ws2_32.lib;%(AdditionalDependencies) - - - - - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - Level3 - Full - Size - Use - Common.h - - - true - Console - true - true - false - $(IntDir)$(TargetName).lib - /PDBALTPATH:%_PDB% - ws2_32.lib;%(AdditionalDependencies) - - - - - WIN64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - Level3 - Full - Size - Use - Common.h - - - true - Console - true - true - false - $(IntDir)$(TargetName).lib - /PDBALTPATH:%_PDB% - ws2_32.lib;%(AdditionalDependencies) - - - - - - - Create - - - - - - - - - \ No newline at end of file diff --git a/plugins/NotifyAnything/sendlog/SendLog_10.vcxproj.filters b/plugins/NotifyAnything/sendlog/SendLog_10.vcxproj.filters deleted file mode 100644 index 2a419c3c9e..0000000000 --- a/plugins/NotifyAnything/sendlog/SendLog_10.vcxproj.filters +++ /dev/null @@ -1,28 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {1e7dd534-d580-4c97-84cc-fdb23038ee29} - - - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - \ No newline at end of file diff --git a/plugins/NotifyAnything/sendlog/SendLog_11.vcxproj b/plugins/NotifyAnything/sendlog/SendLog_11.vcxproj deleted file mode 100644 index 89a77a4d18..0000000000 --- a/plugins/NotifyAnything/sendlog/SendLog_11.vcxproj +++ /dev/null @@ -1,168 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - SendLog - {1AF47743-6E78-4C83-A1E5-21F98516EF5E} - - - - Application - MultiByte - true - v110_xp - - - Application - MultiByte - v110_xp - - - Application - MultiByte - true - v110_xp - - - Application - MultiByte - v110_xp - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.40219.1 - $(SolutionDir)$(Configuration)\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)\ - $(SolutionDir)$(Configuration)\Obj\$(ProjectName)\ - $(SolutionDir)$(Configuration)64\ - $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ - true - - - - Disabled - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Level3 - EditAndContinue - Use - Common.h - - - true - Console - false - $(IntDir)$(TargetName).lib - ws2_32.lib;%(AdditionalDependencies) - - - - - Disabled - WIN64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - Level3 - Use - Common.h - - - true - Console - false - $(IntDir)$(TargetName).lib - ws2_32.lib;%(AdditionalDependencies) - - - - - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - Level3 - Full - Size - Use - Common.h - - - true - Console - true - true - false - $(IntDir)$(TargetName).lib - /PDBALTPATH:%_PDB% - ws2_32.lib;%(AdditionalDependencies) - - - - - WIN64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - Level3 - Full - Size - Use - Common.h - - - true - Console - true - true - false - $(IntDir)$(TargetName).lib - /PDBALTPATH:%_PDB% - ws2_32.lib;%(AdditionalDependencies) - - - - - - - Create - - - - - - - - - \ No newline at end of file diff --git a/plugins/NotifyAnything/sendlog/SendLog_11.vcxproj.filters b/plugins/NotifyAnything/sendlog/SendLog_11.vcxproj.filters deleted file mode 100644 index 2a419c3c9e..0000000000 --- a/plugins/NotifyAnything/sendlog/SendLog_11.vcxproj.filters +++ /dev/null @@ -1,28 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {1e7dd534-d580-4c97-84cc-fdb23038ee29} - - - - - Source Files - - - Source Files - - - Source Files - - - - - Header Files - - - \ No newline at end of file diff --git a/plugins/NotifyAnything/sendlog/src/Common.h b/plugins/NotifyAnything/sendlog/src/Common.h deleted file mode 100644 index 6015a1c011..0000000000 --- a/plugins/NotifyAnything/sendlog/src/Common.h +++ /dev/null @@ -1,9 +0,0 @@ -#define _CRT_SECURE_NO_WARNINGS - -#define _WINSOCKAPI_ // don't include winsock 1.x - -#include -#include -#include -#include - diff --git a/plugins/NotifyAnything/sendlog/src/SLImp.cpp b/plugins/NotifyAnything/sendlog/src/SLImp.cpp deleted file mode 100644 index 3e9b38dd77..0000000000 --- a/plugins/NotifyAnything/sendlog/src/SLImp.cpp +++ /dev/null @@ -1,84 +0,0 @@ -#include "Common.h" - -void implementation(int argc, char **argv, bool console) -{ - int port = 12001; - bool tcp = false; - const char *target = "127.0.0.1"; - - if (argc >= 2 && !strcmp("-T", argv[1])) { - tcp = true; - argc -= 1; - argv += 1; - } - - if (argc >= 3 && !strcmp("-H", argv[1])) { - target = argv[2]; - argc -= 2; - argv += 2; - } - - if (argc >= 3 && !strcmp("-P", argv[1])) { - port = atoi(argv[2]); - argc -= 2; - argv += 2; - } - - WSADATA wsaData; - int err = WSAStartup(MAKEWORD(2, 2), &wsaData); - if (err) - throw (DWORD) err; - - char portbuf[10]; - sprintf(portbuf, "%i", port); - - ADDRINFO hints; - memset(&hints, 0, sizeof hints); - hints.ai_socktype = SOCK_DGRAM; - hints.ai_family = PF_INET; - ADDRINFO *res; - err = getaddrinfo(target, portbuf, &hints, &res); - - if (err || !res) - throw (DWORD) err; - - SOCKET sock; - SOCKADDR_IN to = *(SOCKADDR_IN*)res->ai_addr; - - sock = socket(AF_INET, tcp ? SOCK_STREAM : SOCK_DGRAM, tcp ? IPPROTO_TCP : IPPROTO_UDP); - if (sock == INVALID_SOCKET) - throw (DWORD) WSAGetLastError(); - - SOCKADDR_IN self; - ZeroMemory(&self, sizeof self); - self.sin_family = AF_INET; - - if (bind(sock, (const SOCKADDR *) &self, sizeof self)) - throw (DWORD) WSAGetLastError(); - - if (connect(sock, (const SOCKADDR *) &to, sizeof to)) - throw (DWORD) WSAGetLastError(); - - if (console && (argc == 1 || argc == 3 && !strcmp("-p", argv[1]))) { - std::string prefix; - if (argc == 3) - prefix = argv[2]; - std::string line; - while (std::getline(std::cin, line)) { - std::string data = prefix + line; - send(sock, data.data(), data.size(), 0); - } - } else { - std::string message = argv[1]; - for (int i=2; i. -*/ - -#include "common.h" \ No newline at end of file -- cgit v1.2.3