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

#include "OPCodesImpl.h"
#include <DivideNetworking\ASIO.h>

namespace Divide {

DEFINE_SINGLETON_EXT1(ASIOImpl, ASIO)
  private:
    /// Singleton class: Constructor/Destructor private
    ASIOImpl() : ASIO() {}

    ~ASIOImpl() {}

    /// Define this functions to implement various packet handling (a switch
    /// statement for example)
    /// switch(p.getOpcode()) { case SMSG_XXXXX: bla bla bla break; case
    /// MSG_HEARTBEAT: break;}
    void handlePacket(WorldPacket& p);

    void HandlePongOpCode(WorldPacket& p);
    void HandleHeartBeatOpCode(WorldPacket& p);
    void HandleDisconnectOpCode(WorldPacket& p);
    void HandleGeometryAppendOpCode(WorldPacket& p);

END_SINGLETON

};  // namespace Divide
#endif

Commits for Divide-Framework/trunk/Source Code/Scenes/NetworkScene/Network/Headers/ASIOImpl.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