diff options
author | Thomas Preud'homme <robotux@celest.fr> | 2017-11-24 23:24:09 +0000 |
---|---|---|
committer | Thomas Preud'homme <robotux@celest.fr> | 2017-11-24 23:24:09 +0000 |
commit | b3c8bdcc0d1e4b2ab298847a7902b6d60410a5bc (patch) | |
tree | 8fce8a51adfb245db8ab2a76831661780c0c713e /ExtraSocket.h | |
parent | e297dbd8052ef4e66f069e2dd1865ae7fa8af28e (diff) |
New upstream version 1.2.3.6
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 |