source: osgVisual/src/cluster/dataIO_clusterENet.cpp @ 66

Last change on this file since 66 was 66, checked in by Torben Dannhauer, 14 years ago

ENet debugging/improvements

File size: 2.5 KB
Line 
1/* -*-c++-*- osgVisual - Copyright (C) 2009-2010 Torben Dannhauer
2 *
3 * This library is based on OpenSceneGraph, open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version.  The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * osgVisual requires for some proprietary modules a license from the correspondig manufacturer.
9 * You have to aquire licenses for all used proprietary modules.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 * OpenSceneGraph Public License for more details.
15*/
16
17#include "dataIO_clusterENet.h"
18
19using namespace osgVisual;
20
21dataIO_clusterENet::dataIO_clusterENet()
22{
23        OSG_NOTIFY( osg::ALWAYS ) << "clusterENet constructed" << std::endl;
24}
25
26dataIO_clusterENet::~dataIO_clusterENet(void)
27{
28        OSG_NOTIFY( osg::ALWAYS ) << "clusterENet destructed" << std::endl;
29}
30
31void dataIO_clusterENet::init( osg::ArgumentParser& arguments_, clustermode clusterMode_, osgVisual::dataIO_transportContainer* sendContainer_, bool compressionEnabled_, bool asAscii_ )
32{
33        OSG_NOTIFY( osg::ALWAYS ) << "clusterENet init();" << std::endl;
34       
35        sendContainer = sendContainer_;
36       
37        // create ENet implementation object.
38        enet_impl = new osgVisual::dataIO_clusterENet_implementation();
39}
40
41void dataIO_clusterENet::shutdown()
42{
43        OSG_NOTIFY( osg::ALWAYS ) << "clusterENet shutdown();" << std::endl;
44}
45
46bool dataIO_clusterENet::sendTO_OBJvaluesToSlaves()
47{
48        OSG_NOTIFY( osg::ALWAYS ) << "clusterENet sendTO_OBJvaluesToSlaves()" << std::endl;
49
50        return true;
51}
52
53bool dataIO_clusterENet::readTO_OBJvaluesFromMaster()
54{
55        OSG_NOTIFY( osg::ALWAYS ) << "clusterENet readTO_OBJvaluesFromMaster()" << std::endl;
56
57        return true;
58}
59
60void dataIO_clusterENet::reportAsReadyToSwap()
61{
62        OSG_NOTIFY( osg::ALWAYS ) << "clusterENet reportAsReadyToSwap()" << std::endl;
63}
64
65bool dataIO_clusterENet::waitForSwap()
66{
67        OSG_NOTIFY( osg::ALWAYS ) << "clusterENet waitForSwap()" << std::endl;
68
69        return true;
70}
71
72bool dataIO_clusterENet::waitForAllReadyToSwap()
73{
74        OSG_NOTIFY( osg::ALWAYS ) << "clusterENet waitForAllReadyToSwap()" << std::endl;
75
76        return true;
77}
78
79bool dataIO_clusterENet::sendSwapCommand()
80{
81        OSG_NOTIFY( osg::ALWAYS ) << "clusterENet sendSwapCommand()" << std::endl;
82
83        return true;
84}
Note: See TracBrowser for help on using the repository browser.