Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

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
32
33
34
35
36
37
38
39
40
41
#include "Headers/Server.h"

#include "Utility/Headers/OutputBuffer.h"
#include <EASTL/vector.h>
#include <assert.cpp>
#include <string.cpp>

using namespace Divide;

void* operator new[](size_t size, size_t alignment, size_t alignmentOffset,
                     const char* pName, int flags, unsigned int debugFlags,
                     const char* file, int line) {
    // this allocator doesn't support alignment
    EASTL_ASSERT(alignment <= 8);
    return malloc(size);
}
void* operator new[](size_t size, const char* pName, int flags,
                     unsigned int debugFlags, const char* file, int line) {
    return malloc(size);
}
// E
int Vsnprintf8(char* pDestination, size_t n, const char* pFormat,
               va_list arguments) {
#ifdef _MSC_VER
    return _vsnprintf(pDestination, n, pFormat, arguments);
#else
    return vsnprintf(pDestination, n, pFormat, arguments);
#endif
}

int main() {
    /*Console output redirect*/
    std::ofstream myfile("console_server.log");
    outbuf obuf(myfile.rdbuf(), std::cout.rdbuf());
    scoped_streambuf_assignment ssa(std::cout, &obuf);
    /*Console output redirect*/
    stringImpl address = "127.0.0.1";

    Server::getInstance().init(((U16)443), address, true);
    return 0;
}

Commits for Divide-Framework/trunk/Source Code/Server/main.cpp

Diff revisions: vs.
Revision Author Commited Message
350 Diff Diff IonutCava picture IonutCava Tue 10 Feb, 2015 16:25:39 +0000

[Ionut]
- Simplified some Util-namespace level functions by using STL algorithms where possible
- Formatted the entire codebase using clang-format with the following style: "{BasedOnStyle: Google, IndentWidth: 4}"
- Attempted to make ProfileTimer thread-safe (temp fix until std::chrono works properly in Visual Studio)

334 IonutCava picture IonutCava Wed 10 Dec, 2014 17:21:22 +0000

[Ionut]
- Reorganized the Hardware project and renamed to "Platform"
- Reorganized the Server project