Changeset 65 for osgVisual/src/dataIO


Ignore:
Timestamp:
Jul 11, 2010, 9:39:56 AM (14 years ago)
Author:
Torben Dannhauer
Message:

new cluster implementation added: ENet
ENet is a reliable UDP implementation with quite simple usage and high performance for transmission with small or medium size packet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/src/dataIO/visual_dataIO.cpp

    r59 r65  
    7777                cluster = new dataIO_clusterUDP();
    7878        #endif
    79         cluster->init(arguments_, clusterMode, slotContainer, true, false);
     79        #ifdef USE_CLUSTER_ENET
     80                cluster = new dataIO_clusterENet();
     81        #endif
     82        if(cluster.valid())
     83                cluster->init(arguments_, clusterMode, slotContainer, true, false);
    8084
    8185        // Create extLink.
     
    114118                viewer = NULL;
    115119
    116                 cluster->shutdown();
     120                if(cluster.valid())
     121                        cluster->shutdown();
     122                if(extLink.valid())
    117123                extLink->shutdown();
    118124        }
Note: See TracChangeset for help on using the changeset viewer.