Subversion Repositories tpanel

Rev

Rev 16 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16 Rev 21
Line 1... Line 1...
1
/*
1
/*
2
 * Copyright (C) 2018 by Andreas Theofilu <andreas@theosys.at>
2
 * Copyright (C) 2018 to 2021 by Andreas Theofilu <andreas@theosys.at>
3
 *
3
 *
4
 * This program is free software; you can redistribute it and/or modify
4
 * This program is free software; you can redistribute it and/or modify
5
 * it under the terms of the GNU General Public License as published by
5
 * it under the terms of the GNU General Public License as published by
6
 * the Free Software Foundation; either version 3 of the License, or
6
 * the Free Software Foundation; either version 3 of the License, or
7
 * (at your option) any later version.
7
 * (at your option) any later version.
Line 17... Line 17...
17
 */
17
 */
18
 
18
 
19
#ifndef __TAMXNET_H__
19
#ifndef __TAMXNET_H__
20
#define __TAMXNET_H__
20
#define __TAMXNET_H__
21
 
21
 
22
#include <asio.hpp>
22
#include "asio.hpp"
23
 
23
 
24
#include <functional>
24
#include <functional>
25
#include <cstring>
25
#include <cstring>
26
#include <cstdio>
26
#include <cstdio>
27
#include <atomic>
27
#include <atomic>
28
 
28
 
29
#ifdef __APPLE__
29
#ifdef __APPLE__
30
using namespace boost;
30
using namespace boost;
31
#endif
31
#endif
32
 
32
 
-
 
33
#ifdef __ANDROID__
-
 
34
typedef unsigned long int ulong;
-
 
35
#endif
-
 
36
 
33
extern std::atomic<bool> killed;
37
extern std::atomic<bool> killed;
-
 
38
extern bool prg_stopped;
34
 
39
 
35
namespace amx
40
namespace amx
36
{
41
{
37
#define MAX_CHUNK   0x07d0  // Maximum size a part of a file can have. The file will be splitted into this size of chunks.
42
#define MAX_CHUNK   0x07d0  // Maximum size a part of a file can have. The file will be splitted into this size of chunks.
38
#define BUF_SIZE    0x1000  // 4096 bytes
43
#define BUF_SIZE    0x1000  // 4096 bytes