blob: c8d44c534376f864c4cde9131401e194e2275377 (
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
|
/** \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
|