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
#ifndef _SERVER_H_
#define _SERVER_H_

#include "Core/Headers/Singleton.h"

#include <DivideNetworking/tcp_session_tpl.h>
#include <boost/asio.hpp>

//----------------------------------------------------------------------
namespace Divide {

DEFINE_SINGLETON(Server)
  public:
    void init(U16 port, const stringImpl& broadcast_endpoint_address,
              bool debugOutput);

  private:
    Server();
    ~Server();
    void handle_accept(tcp_session_ptr session,
                       const boost::system::error_code& ec);

  private:
    boost::asio::io_service io_service_;
    tcp::acceptor* acceptor_;
    channel channel_;
    bool _debugOutput;

END_SINGLETON

};  // namespace Divide
#endif

Commits for Divide-Framework/trunk/Source Code/Server/Headers/Server.h

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)

337 Diff Diff IonutCava picture IonutCava Wed 17 Dec, 2014 17:25:16 +0000

[Ionut]
- Replaced all tabs with 4 spaces (some spacing may be off now. no way to check all the files.)
- Moved implementation details for ParamHandler, BoundingBox, BoundingSphere and ProfileTimer to proper .inl and .cpp files. (more to follow)
- Update all forward declared enums with the required storage type (as requested by the C++11 standard)

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