File: ExtraSocket.h

package info (click to toggle)
ultracopier 2.2.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 18,548 kB
  • sloc: cpp: 57,995; ansic: 8,128; sh: 2,520; xml: 677; makefile: 26
file content (30 lines) | stat: -rwxr-xr-x 633 bytes parent folder | download | duplicates (4)
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
/** \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