summaryrefslogtreecommitdiff
path: root/ExtraSocket.h
diff options
context:
space:
mode:
Diffstat (limited to 'ExtraSocket.h')
-rw-r--r--ExtraSocket.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/ExtraSocket.h b/ExtraSocket.h
new file mode 100644
index 0000000..c8d44c5
--- /dev/null
+++ b/ExtraSocket.h
@@ -0,0 +1,30 @@
+/** \file ExtraSocket.h
+\brief Define the socket for ultracopier
+\author alpha_one_x86
+\licence GPL3, see the file COPYING */
+
+#ifndef EXTRASOCKET_H
+#define EXTRASOCKET_H
+
+#include <QString>
+
+#ifdef Q_OS_UNIX
+ #include <unistd.h>
+ #include <sys/types.h>
+#else
+ #ifndef NOMINMAX
+ #define NOMINMAX
+ #endif
+ #include <windows.h>
+#endif
+
+/** \brief class to have general socket options */
+class ExtraSocket
+{
+public:
+ /** \brief class to return always the same socket resolution */
+ static std::string pathSocket(const std::string &name);
+ static char * toHex(const char *str);
+};
+
+#endif // EXTRASOCKET_H