summaryrefslogtreecommitdiff
path: root/plugins/Listener/catchcopy-v0002/catchcopy-api-0002/ExtraSocketCatchcopy.h
blob: fb4201cf2e56295d1da894b9cd8c7aab3f287cf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/** \file ExtraSocketCatchcopy.h
\brief Define the socket of catchcopy
\author alpha_one_x86
\licence GPL3, see the file COPYING */

#ifndef EXTRASOCKETCATCHCOPY_H
#define EXTRASOCKETCATCHCOPY_H

#include <string>
#include <QString>

#ifdef Q_OS_UNIX
    #include <unistd.h>
    #include <sys/types.h>
#else
    #ifndef NOMINMAX
        #define NOMINMAX
    #endif
    #include <windows.h>
#endif

/// \brief to have extra socket function
class ExtraSocketCatchcopy
{
public:
    /// \brief to get the socket path
    static const std::string pathSocket();
    static char * toHex(const char *str);
};

#endif // EXTRASOCKETCATCHCOPY_H