diff options
Diffstat (limited to 'ExtraSocket.h')
-rw-r--r-- | ExtraSocket.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/ExtraSocket.h b/ExtraSocket.h index 56229c7..4fa15e1 100644 --- a/ExtraSocket.h +++ b/ExtraSocket.h @@ -1,8 +1,6 @@ /** \file ExtraSocket.h \brief Define the socket for ultracopier \author alpha_one_x86 -\version 0.3 -\date 2010 \licence GPL3, see the file COPYING */ #ifndef EXTRASOCKET_H @@ -11,18 +9,22 @@ #include <QString> #ifdef Q_OS_UNIX - #include <unistd.h> - #include <sys/types.h> + #include <unistd.h> + #include <sys/types.h> #else - #include <windows.h> + #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 QString pathSocket(const QString &name); + /** \brief class to return always the same socket resolution */ + static QString pathSocket(const QString &name); + static char * toHex(const char *str); }; #endif // EXTRASOCKET_H |